# HG changeset patch # User lbessard # Date 1216388677 -7200 # Node ID e5bf78b847e1c60410593ecf466225331034cd0b # Parent ea857c3a0427ca41a401ee6b5e7a9cf400d1a298 Bug with AutoBufferedPaintDC and Background style fixed diff -r ea857c3a0427 -r e5bf78b847e1 Viewer.py --- a/Viewer.py Fri Jul 18 14:41:32 2008 +0200 +++ b/Viewer.py Fri Jul 18 15:44:37 2008 +0200 @@ -306,6 +306,7 @@ # Adding a rubberband to Viewer self.rubberBand = RubberBand(drawingSurface=self) self.SetBackgroundColour(wx.Colour(255,255,255)) + self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM) self.ResetView() self.Scaling = None self.DrawGrid = True