chiark / gitweb /
Reset the window position if the window is off-screen.
authordaid303 <daid303@gmail.com>
Fri, 22 Mar 2013 12:06:32 +0000 (13:06 +0100)
committerdaid303 <daid303@gmail.com>
Fri, 22 Mar 2013 12:06:32 +0000 (13:06 +0100)
Cura/gui/mainWindow.py

index 29b22fb35ee029a6cbf98079f424933013e946a5..4bfcef61b1e4c04756af249f53591577b855d98f 100644 (file)
@@ -227,6 +227,9 @@ class mainWindow(wx.Frame):
 
                self.splitter.SplitVertically(self.leftPane, self.rightPane, self.normalSashPos)
 
+               if wx.Display.GetFromPoint(self.GetPosition()) < 0:
+                       self.Centre()
+
                self.updateSliceMode()
 
                self.Show(True)