Skip to content

Commit

Permalink
Fix ZoomModeOut for screens with negative coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Andreu committed Jun 24, 2019
1 parent d0c925c commit 7e86b51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GraphDigitizer/Views/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ private void ZoomModeOut(bool recover = true)
{
Rect r;
this.precisionMode = false;
r.Top = 0;
r.Top = int.MinValue;
r.Bottom = int.MaxValue;
r.Left = 0;
r.Left = int.MinValue;
r.Right = int.MaxValue;
ClipCursor(ref r);
if (recover) SetCursorPos((int)this.previousPosition.X, (int)this.previousPosition.Y);
Expand Down

0 comments on commit 7e86b51

Please sign in to comment.