1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-16 14:13:53 +01:00

Make right half of VRuler inactive.

This is a buffer zone to reduce risk of accidental activation of VRuler scaling.
This commit is contained in:
James Crook
2017-12-08 22:16:18 +00:00
parent f463eda36c
commit cb363cdd99

View File

@@ -3497,7 +3497,8 @@ void TrackPanelCellIterator::UpdateRect()
} }
case CellType::VRuler: case CellType::VRuler:
mRect.x = kTrackInfoWidth; 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.y += kTopMargin;
mRect.height -= (kBottomMargin + kTopMargin); mRect.height -= (kBottomMargin + kTopMargin);
break; break;