Fixed general size bug

This commit is contained in:
Maximilian Giller 2020-04-21 14:00:01 +02:00
parent 30eb1e4cdd
commit 83f8f37447

View file

@ -10,6 +10,11 @@ class DesignEntity (object):
def __init__(self, size, mask=False, invert_mask=False, color_key=False):
self.size = size
# Are dimensions >= 0?
for i in range(2):
if self.size[i] < 0:
self.size[i] = 0
self.pos = (0, 0)
self.mask = mask
self.invert_mask = invert_mask