Kaydet (Commit) a4e58b50 authored tarafından Caolán McNamara's avatar Caolán McNamara

silence ReleaseMouse warning

Change-Id: I615b4877ab29075ed45149259260acfb2563cad8
üst c2f13bd8
......@@ -280,7 +280,7 @@ bool SelectionEngine::SelMouseButtonUp( const MouseEvent& rMEvt )
void SelectionEngine::ReleaseMouse()
{
if (!pWin)
if (!pWin || !pWin->IsMouseCaptured())
return;
pWin->ReleaseMouse();
}
......
......@@ -1251,7 +1251,8 @@ void ImplTBDragMgr::Dragging( const Point& rPos )
void ImplTBDragMgr::EndDragging( bool bOK )
{
mpDragBox->HideTracking();
mpDragBox->ReleaseMouse();
if (mpDragBox->IsMouseCaptured())
mpDragBox->ReleaseMouse();
mpDragBox->mbDragging = false;
mbShowDragRect = false;
Application::RemoveAccel( &maAccel );
......@@ -3346,7 +3347,8 @@ void ToolBox::ImplFloatControl( bool bStart, FloatingWindow* pFloatWindow )
mbDrag = false;
EndTracking();
ReleaseMouse();
if (IsMouseCaptured())
ReleaseMouse();
}
else
{
......
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment