From bea53a57141e78f9381c996c8e4794e9a5077fc3 Mon Sep 17 00:00:00 2001 From: Steffen Hirtle Date: Thu, 29 Dec 2022 14:11:29 +0100 Subject: [PATCH] Fixed bug which prevented Fits header from being transfered --- src/astroimage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/astroimage.py b/src/astroimage.py index f929eea..85e331d 100644 --- a/src/astroimage.py +++ b/src/astroimage.py @@ -152,7 +152,7 @@ def crop(self, startx, endx, starty, endy): return def update_fits_header(self, original_header, background_mean, app, app_state): - if(self.fits_header is None): + if(original_header is None): self.fits_header = fits.Header() else: self.fits_header = original_header