mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Fixed problem when selecting something after changing modes.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2353 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
4800bedde2
commit
c7c61773a5
1 changed files with 3 additions and 0 deletions
|
@ -262,6 +262,7 @@ namespace Greenshot.Forms {
|
|||
zoomAnimator.ChangeDestination(new Rectangle(Point.Empty, Size.Empty), 20);
|
||||
// "Fade in" window
|
||||
windowAnimator = new RectangleAnimator(new Rectangle(cursorPos, Size.Empty), captureRect, 10, EasingType.Quintic, EasingMode.EaseOut);
|
||||
captureRect = Rectangle.Empty;
|
||||
break;
|
||||
case CaptureMode.Window:
|
||||
// Set the region capture mode
|
||||
|
@ -271,6 +272,7 @@ namespace Greenshot.Forms {
|
|||
// Fade in zoom
|
||||
zoomAnimator = new RectangleAnimator(Rectangle.Empty, new Rectangle(int.MaxValue, int.MaxValue, 0, 0), 20, EasingType.Quintic, EasingMode.EaseOut);
|
||||
VerifyZoomAnimation(cursorPos, false);
|
||||
captureRect = Rectangle.Empty;
|
||||
break;
|
||||
}
|
||||
selectedCaptureWindow = null;
|
||||
|
@ -431,6 +433,7 @@ namespace Greenshot.Forms {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (selectedCaptureWindow != null && !selectedCaptureWindow.Equals(lastWindow)) {
|
||||
capture.CaptureDetails.Title = selectedCaptureWindow.Text;
|
||||
capture.CaptureDetails.AddMetaData("windowtitle", selectedCaptureWindow.Text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue