MiRCARTFrame.py:MiRCARTFrame.onFrameCommand(): don't decrease brush size below (1,1).

MiRCARTFrame.py:MiRCARTFrame.onFrameCommand(): remove debugging print()s.
This commit is contained in:
Lucio Andrés Illanes Albornoz 2018-01-08 01:18:52 +01:00
parent dddce0757b
commit e763dc8909

View File

@ -342,12 +342,11 @@ class MiRCARTFrame(MiRCARTGeneralFrame):
elif cid == self.CID_INCRBRUSH[0]:
self.panelCanvas.brushSize = \
[a+1 for a in self.panelCanvas.brushSize]
print(self.panelCanvas.brushSize)
elif cid == self.CID_DECRBRUSH[0] \
and self.panelCanvas.brushSize != [0,0]:
and self.panelCanvas.brushSize[0] > 1 \
and self.panelCanvas.brushSize[1] > 1:
self.panelCanvas.brushSize = \
[a-1 for a in self.panelCanvas.brushSize]
print(self.panelCanvas.brushSize)
elif cid == self.CID_SOLID_BRUSH[0]:
pass
elif cid == self.CID_RECT[0]: