BUG-1812 storing a windows placement and than using this later causes issues when the location is actually outside of the screen. This should fix it.

This commit is contained in:
Robin 2016-07-03 21:59:20 +02:00
commit 789334c193
2 changed files with 22 additions and 5 deletions

View file

@ -119,6 +119,15 @@ namespace Greenshot.Configuration {
}
}
public void ResetEditorPlacement()
{
WindowNormalPosition = new Rectangle(100, 100, 400, 400);
WindowMaxPosition = new Point(-1,-1);
WindowMinPosition = new Point(-1, -1);
WindowPlacementFlags = 0;
ShowWindowCommand = ShowWindowCommand.Normal;
}
public WindowPlacement GetEditorPlacement() {
WindowPlacement placement = WindowPlacement.Default;
placement.NormalPosition = new RECT(WindowNormalPosition);