Package: python-squaremap Version: 1.0.1b3-1 Severity: minor Tags: upstream patch
Hello. Task Coach developers <[email protected]> use the following patch. Please consider it. (they are CCed for information) --- /usr/share/pyshared/squaremap/squaremap.py 2011-05-12 04:04:09.000000000 +0200 +++ taskcoachlib/thirdparty/squaremap/squaremap.py 2012-02-03 11:11:32.000000000 +0100 @@ -120,6 +120,7 @@ self.highlight = highlight self.selectedNode = None self.highlightedNode = None + self._buffer = wx.EmptyBitmap(20, 20) # Have a default buffer ready self.Bind( wx.EVT_PAINT, self.OnPaint) self.Bind( wx.EVT_SIZE, self.OnSize ) if highlight: @@ -214,6 +215,8 @@ # The buffer is initialized in here, so that the buffer is always # the same size as the Window. width, height = self.GetClientSizeTuple() + if width <= 0 or height <=0: + return # Make new off-screen bitmap: this bitmap will always have the # current drawing in it, so it can be used to save the image to # a file, or whatever. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

