From 2d925317b01eaa37fcbe17da187daaf24520fae8 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Fri, 6 May 2016 20:46:12 -0400 Subject: [PATCH] Show correct context menu for scrubbing phase 2x --- src/widgets/Ruler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/widgets/Ruler.cpp b/src/widgets/Ruler.cpp index f0cc3eafd..4a59ad801 100644 --- a/src/widgets/Ruler.cpp +++ b/src/widgets/Ruler.cpp @@ -2856,9 +2856,7 @@ void AdornedRulerPanel::OnKillFocus(wxFocusEvent & WXUNUSED(event)) void AdornedRulerPanel::OnContextMenu(wxContextMenuEvent & WXUNUSED(event)) { - auto rect = GetRect(); - wxPoint position(rect.GetLeft() + 1, rect.GetBottom() + 1); - ShowMenu(position); + ShowButtonMenu(mTabState.mButton, nullptr); } void AdornedRulerPanel::OnCaptureLost(wxMouseCaptureLostEvent & WXUNUSED(evt))