fix fit_bounds

This commit is contained in:
Laura Klünder 2017-11-17 18:36:45 +01:00
parent 1966995827
commit 760b045345

View file

@ -101,8 +101,8 @@ class GeometryIndexed:
if self.data.size:
minx = min(self.x, minx)
miny = min(self.y, miny)
maxx = max(self.x + width, maxx - minx)
maxy = max(self.y + height, maxy - miny)
maxx = max(self.x + width, maxx)
maxy = max(self.y + height, maxy)
new_data = np.zeros((maxy - miny, maxx - minx), dtype=self.dtype)