]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/floatcanvas/NavCanvas.py
more warnings fixes
[wxWidgets.git] / wxPython / wx / lib / floatcanvas / NavCanvas.py
index 5d7ee0cadc4bc0d187d0b5de6047f178336ddd3b..6a2f788649c278dacc86420b90006ca93410e058 100644 (file)
@@ -100,7 +100,8 @@ class NavCanvas(wx.Panel):
         wx.EVT_BUTTON(self, ID_ZOOM_TO_FIT_BUTTON, self.ZoomToFit)
 
         tb.Realize()
-        tb.SetSizeHints(tb.GetSize())
+        S = tb.GetSize()
+        tb.SetSizeHints(S[0],S[1])
         return tb
 
     def SetToolMode(self,event):