1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Bug2245: Draw a line separating split views

This commit is contained in:
Paul Licameli 2020-01-14 19:19:38 -05:00
parent 9e0372cbea
commit bd95b910bb

View File

@ -1268,9 +1268,22 @@ struct VRulersAndChannels final : TrackPanelGroup {
{
// This overpaints the track area, but sometimes too the stereo channel
// separator, so draw at least later than that
if ( iPass == TrackArtist::PassBorders )
if ( iPass == TrackArtist::PassBorders ) {
DrawTrackName( mLeftOffset,
context, mpTrack->SubstitutePendingChangedTrack().get(), rect );
}
if ( iPass == TrackArtist::PassControls ) {
if (mRefinement.size() > 1) {
// Draw lines separating sub-views
auto &dc = context.dc;
dc.SetPen(*wxBLACK_PEN);
auto iter = mRefinement.begin() + 1, end = mRefinement.end();
for ( ; iter != end; ++iter ) {
auto yy = iter->first;
AColor::Line( dc, mLeftOffset, yy, rect.GetRight(), yy );
}
}
}
}
wxRect DrawingArea(