From a4e58b509828d806513217efc03134845629cccd Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 30 Nov 2015 16:18:35 +0000 Subject: silence ReleaseMouse warning Change-Id: I615b4877ab29075ed45149259260acfb2563cad8 --- vcl/source/window/toolbox2.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vcl/source/window/toolbox2.cxx') diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index dddb65fba628..2bcb44ec85b9 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -1335,7 +1335,8 @@ void ToolBox::EndSelection() if (mnCurPos != TOOLBOX_ITEM_NOTFOUND) InvalidateItem(mnCurPos); EndTracking(); - ReleaseMouse(); + if (IsMouseCaptured()) + ReleaseMouse(); Deactivate(); } @@ -1378,7 +1379,8 @@ void ToolBox::SetItemDown( sal_uInt16 nItemId, bool bDown, bool bRelease ) mbDrag = false; mbSelection = false; EndTracking(); - ReleaseMouse(); + if (IsMouseCaptured()) + ReleaseMouse(); Deactivate(); } -- cgit