diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-18 12:10:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-18 13:27:15 +0100 |
commit | c1b14cb632914d6eeaa036d7d1b2cce1b2fd14b3 (patch) | |
tree | e31418ffdc93c83234d34a0253e927f105a78d92 /vcl | |
parent | 50938d84de555ac8dd3151f44e8ba20276ddd7be (diff) |
Window::ReleaseMouse warning isn't helpful
Change-Id: If25bdc25c5fc6c1beda14c749c3bdfb6d12386a2
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/mouse.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/vcl/source/window/mouse.cxx b/vcl/source/window/mouse.cxx index 090b2e3e73fd..814560113470 100644 --- a/vcl/source/window/mouse.cxx +++ b/vcl/source/window/mouse.cxx @@ -464,14 +464,9 @@ void Window::CaptureMouse() void Window::ReleaseMouse() { - - ImplSVData* pSVData = ImplGetSVData(); - - SAL_WARN_IF(!IsMouseCaptured(), "vcl", - "Window::ReleaseMouse(): window doesn't have the mouse capture" ); - if (IsMouseCaptured()) { + ImplSVData* pSVData = ImplGetSVData(); pSVData->maWinData.mpCaptureWin = nullptr; mpWindowImpl->mpFrame->CaptureMouse( false ); ImplGenerateMouseMove(); @@ -480,13 +475,11 @@ void Window::ReleaseMouse() bool Window::IsMouseCaptured() const { - return (this == ImplGetSVData()->maWinData.mpCaptureWin); } void Window::SetPointer( const Pointer& rPointer ) { - if ( mpWindowImpl->maPointer == rPointer ) return; |