From c1b14cb632914d6eeaa036d7d1b2cce1b2fd14b3 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 18 Apr 2017 12:10:20 +0100 Subject: Window::ReleaseMouse warning isn't helpful Change-Id: If25bdc25c5fc6c1beda14c749c3bdfb6d12386a2 --- vcl/source/window/mouse.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'vcl') 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; -- cgit