From cb363cdd99c3d3015bd26c1a48bf3e562ba642bc Mon Sep 17 00:00:00 2001 From: James Crook Date: Fri, 8 Dec 2017 22:16:18 +0000 Subject: [PATCH] Make right half of VRuler inactive. This is a buffer zone to reduce risk of accidental activation of VRuler scaling. --- src/TrackPanel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TrackPanel.cpp b/src/TrackPanel.cpp index f2b91dbbb..cf4a9b89d 100644 --- a/src/TrackPanel.cpp +++ b/src/TrackPanel.cpp @@ -3497,7 +3497,8 @@ void TrackPanelCellIterator::UpdateRect() } case CellType::VRuler: mRect.x = kTrackInfoWidth; - mRect.width = mPanel->GetLeftOffset() - mRect.x; + // Only half the VRuler is active. + mRect.width = (mPanel->GetLeftOffset() - mRect.x)/2.0; mRect.y += kTopMargin; mRect.height -= (kBottomMargin + kTopMargin); break;