mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Fix wxassertionerror. Bitmap w or h should not be 0
This commit is contained in:
@@ -524,8 +524,8 @@ class PieCtrl(wx.Window):
|
||||
def RecreateCanvas(self):
|
||||
""" Recreates the :class:`PieCtrl` container (canvas). """
|
||||
|
||||
self._canvasbitmap = wx.Bitmap(self.GetSize().GetWidth(),
|
||||
self.GetSize().GetHeight())
|
||||
self._canvasbitmap = wx.Bitmap(self.GetSize().GetWidth() or 1,
|
||||
self.GetSize().GetHeight() or 1)
|
||||
self._canvasDC.SelectObject(self._canvasbitmap)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user