Fixed a crash that would occur if the mouse was left in a captured state after closing and reopening the color picker. Updates #1025

Originally committed to SVN as r3754.
This commit is contained in:
harukalover 2009-11-01 07:28:09 +00:00
parent d2834dca45
commit 3c2997e906
1 changed files with 4 additions and 0 deletions

View File

@ -801,6 +801,10 @@ DialogColorPicker::~DialogColorPicker()
delete rgb_slider[2];
delete hsl_slider;
delete hsv_slider;
#ifdef __WXMSW__
if (screen_dropper_icon->HasCapture()) screen_dropper_icon->ReleaseMouse();
#endif
}