kliment / Printrun

Pronterface, Pronsole, and Printcore - Pure Python 3d printing host software
GNU General Public License v3.0
2.36k stars 995 forks source link

Error in Excluder, int expected, got float #1306

Closed rockstorm101 closed 1 year ago

rockstorm101 commented 1 year ago

Steps to reproduce

Error

Traceback (most recent call last):
  File "/home/rock/Projects/printrun/rockintrun/printrun/gviz.py", line 415, in paint
    self.paint_overlay(dc)
  File "/home/rock/Projects/printrun/rockintrun/printrun/excluder.py", line 91, in paint_selection
    dc.DrawRectangleList([self._line_scaler(rect)
  File "/usr/lib/python3/dist-packages/wx/core.py", line 1136, in _DC_DrawRectangleList
    return self._DrawRectangleList(rectangles, pens, brushes)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'float' object cannot be interpreted as an integer

System Info