branch | python3 |
changeset 3792 | 365f866ee120 |
parent 3750 | f62625418bff |
--- a/graphics/RubberBand.py Wed Apr 12 19:28:37 2023 +0200 +++ b/graphics/RubberBand.py Wed Apr 12 19:32:38 2023 +0200 @@ -168,8 +168,8 @@ for bbox in bboxes: if bbox is not None: dc.DrawRectangle( - bbox.x * scalex, bbox.y * scaley, - bbox.width * scalex, bbox.height * scaley) + round(bbox.x * scalex), round(bbox.y * scaley), + round(bbox.width * scalex), round(bbox.height * scaley)) dc.SetLogicalFunction(wx.COPY)