fix typo (max instead of min) in MapHistory.add_new()

This commit is contained in:
Laura Klünder 2017-10-28 13:14:32 +02:00
parent 1db9db542f
commit bdbbaa71a1

View file

@ -122,7 +122,7 @@ class MapHistory:
else:
height, width = data.shape
minx, miny = max(minx, self.x), max(miny, self.y)
maxx, maxy = min(maxx, self.x+width), max(maxy, self.y+height)
maxx, maxy = min(maxx, self.x+width), min(maxy, self.y+height)
new_val = len(self.updates) if direct else 1
for iy, y in enumerate(range(miny*res, maxy*res, res), start=miny-self.y):