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:
RKrom 2012-12-04 13:41:55 +00:00
parent 4800bedde2
commit c7c61773a5

View file

@ -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);