Fixed thread error

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1637 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-02-07 16:22:57 +00:00
commit 034daa3957

View file

@ -188,6 +188,9 @@ namespace Greenshot.Helpers {
break;
case CaptureMode.ActiveWindow:
if (CaptureActiveWindow()) {
if (windowDetailsThread != null) {
windowDetailsThread.Join();
}
// Capture worked, offset mouse according to screen bounds and capture location
capture.MoveMouseLocation(capture.ScreenBounds.Location.X-capture.Location.X, capture.ScreenBounds.Location.Y-capture.Location.Y);
capture.MoveElements(capture.ScreenBounds.Location.X-capture.Location.X, capture.ScreenBounds.Location.Y-capture.Location.Y);