diff options
-rw-r--r-- | vcl/source/window/window2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index 0ae442b03a53..284877d3213f 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -794,14 +794,14 @@ bool Window::HandleScrollCommand( const CommandEvent& rCmd, const CommandGesturePanData* pData = rCmd.GetGesturePanData(); if (pData) { - if (pData && pData->meEventType == GestureEventPanType::Begin) + if (pData->meEventType == GestureEventPanType::Begin) { if (pHScrl) mpWindowImpl->mpFrameData->mnTouchPanPositionX = pHScrl->GetThumbPos(); if (pVScrl) mpWindowImpl->mpFrameData->mnTouchPanPositionY = pVScrl->GetThumbPos(); } - else if (pData && pData->meEventType == GestureEventPanType::Update) + else if (pData->meEventType == GestureEventPanType::Update) { bool bHorz = pData->meOrientation == PanningOrientation::Horizontal; Scrollable* pScrl = bHorz ? pHScrl : pVScrl; |