From 034daa39576c431669b1c39f10606dcd0939c010 Mon Sep 17 00:00:00 2001 From: RKrom Date: Tue, 7 Feb 2012 16:22:57 +0000 Subject: [PATCH] Fixed thread error git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1637 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Helpers/CaptureHelper.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Greenshot/Helpers/CaptureHelper.cs b/Greenshot/Helpers/CaptureHelper.cs index c741b355f..6e42a908d 100644 --- a/Greenshot/Helpers/CaptureHelper.cs +++ b/Greenshot/Helpers/CaptureHelper.cs @@ -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);