mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
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:
parent
aa3df02e3f
commit
789334c193
2 changed files with 22 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue