Fix rubberband not clearing DC on redraw

This commit is contained in:
belono
2024-11-25 22:49:40 +01:00
committed by Scott Talbert
parent ce82caf404
commit 37dcdcad57

View File

@@ -332,8 +332,7 @@ class RubberBand:
dc.SetBrush(wx.TRANSPARENT_BRUSH)
dc.SetLogicalFunction(wx.XOR)
if boxToErase:
r = wx.Rect(*boxToErase)
dc.DrawRectangle(r)
dc.Clear()
r = wx.Rect(*boxToDraw)
dc.DrawRectangle(r)