summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-18 12:10:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-18 13:27:15 +0100
commitc1b14cb632914d6eeaa036d7d1b2cce1b2fd14b3 (patch)
treee31418ffdc93c83234d34a0253e927f105a78d92
parent50938d84de555ac8dd3151f44e8ba20276ddd7be (diff)
Window::ReleaseMouse warning isn't helpful
Change-Id: If25bdc25c5fc6c1beda14c749c3bdfb6d12386a2
-rw-r--r--vcl/source/window/mouse.cxx9
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;