From c249500ec631b7268845a689ab033c09e2f996e2 Mon Sep 17 00:00:00 2001 From: Daniel Scheffler Date: Tue, 14 May 2019 15:06:00 +0200 Subject: [PATCH] Bugfix. Signed-off-by: Daniel Scheffler --- geoarray/baseclasses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geoarray/baseclasses.py b/geoarray/baseclasses.py index 2d11c3b..9b6e369 100644 --- a/geoarray/baseclasses.py +++ b/geoarray/baseclasses.py @@ -1064,7 +1064,7 @@ class GeoArray(object): image2plot = image2plot.astype(np.int32) # rotated images always have to be resampled for plotting - if not ignore_rotation and gt[2] or gt[4]: + if not ignore_rotation and (gt[2] or gt[4]): out_prj = out_prj or self.projection if res_factor != 1. and image2plot.shape[0] * image2plot.shape[1] > 1e6: # shape > 1000*1000 -- GitLab