1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 09:20:16 +01:00

Remove calls to TrackPanel::FindTrackRect for finding control area

This commit is contained in:
Paul Licameli
2018-11-19 11:03:41 -05:00
parent 6f31a9f7dc
commit 15777834e0
5 changed files with 15 additions and 15 deletions

View File

@@ -3079,7 +3079,8 @@ int LabelTrack::DialogForLabelName(
auto trackPanel = project.GetTrackPanel();
auto &viewInfo = project.GetViewInfo();
wxPoint position = trackPanel->FindTrackRect(trackPanel->GetFocusedTrack(), false).GetBottomLeft();
wxPoint position =
trackPanel->FindTrackRect(trackPanel->GetFocusedTrack()).GetBottomLeft();
// The start of the text in the text box will be roughly in line with the label's position
// if it's a point label, or the start of its region if it's a region label.
position.x += trackPanel->GetLabelWidth()