From: daid303 Date: Fri, 29 Mar 2013 09:34:57 +0000 (+0100) Subject: Force the window on screen. X-Git-Tag: 13.05~64^2~17 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=8e5347ac0a375726ef38a09b61722c2ca57ff7ae;p=cura.git Force the window on screen. --- diff --git a/Cura/gui/mainWindow.py b/Cura/gui/mainWindow.py index 4bfcef61..00282071 100644 --- a/Cura/gui/mainWindow.py +++ b/Cura/gui/mainWindow.py @@ -229,6 +229,11 @@ class mainWindow(wx.Frame): if wx.Display.GetFromPoint(self.GetPosition()) < 0: self.Centre() + if wx.Display.GetFromPoint((self.GetPositionTuple()[0] + self.GetSizeTuple()[1], self.GetPositionTuple()[1] + self.GetSizeTuple()[1])) < 0: + self.Centre() + if wx.Display.GetFromPoint(self.GetPosition()) < 0: + self.SetSize((800,600)) + self.Centre() self.updateSliceMode()