summaryrefslogtreecommitdiff
path: root/vcl/source/window/commandevent.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/commandevent.cxx')
-rw-r--r--vcl/source/window/commandevent.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/window/commandevent.cxx b/vcl/source/window/commandevent.cxx
index ef3f753ac6a5..83c21826e7c3 100644
--- a/vcl/source/window/commandevent.cxx
+++ b/vcl/source/window/commandevent.cxx
@@ -179,10 +179,10 @@ const CommandGestureSwipeData* CommandEvent::GetGestureSwipeData() const
return nullptr;
}
-const CommandLongPressData* CommandEvent::GetLongPressData() const
+const CommandGestureLongPressData* CommandEvent::GetLongPressData() const
{
- if( mnCommand == CommandEventId::LongPress )
- return static_cast<const CommandLongPressData*>(mpData);
+ if( mnCommand == CommandEventId::GestureLongPress )
+ return static_cast<const CommandGestureLongPressData*>(mpData);
else
return nullptr;
}