summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-11-30 10:33:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-11-30 10:34:34 +0000
commit7dcbc5708aec6672ddc3ba6ed000421f56e651ac (patch)
treec1969ba6fc9e4d75f2656efa81b1ab22be0eaed7 /sd
parenta80dea3e77c2a8465cdd309c5f740fb8102dd826 (diff)
silence mouse release warning
Change-Id: Ie3c6da36f1c462080f78e8713e9e5dcd228fbacf
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/fupoor.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/func/fupoor.cxx b/sd/source/ui/func/fupoor.cxx
index fb896ce082bb..34b35ab4a1ca 100644
--- a/sd/source/ui/func/fupoor.cxx
+++ b/sd/source/ui/func/fupoor.cxx
@@ -116,15 +116,15 @@ void FuPoor::Deactivate()
aDragTimer.Stop();
aScrollTimer.Stop();
aDelayToScrollTimer.Stop ();
- bScrollable =
- bDelayActive = false;
+ bScrollable = bDelayActive = false;
if (pDialog)
{
pDialog->Hide();
}
- if (mpWindow) mpWindow->ReleaseMouse ();
+ if (mpWindow && mpWindow->IsMouseCaptured())
+ mpWindow->ReleaseMouse();
}
void FuPoor::SetWindow(::sd::Window* pWin)