1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-29 08:43:56 +01:00

Bug 1660 - (Windows) Default track name appears as "Audio Trac ".

This commit is contained in:
James Crook
2017-06-18 12:42:12 +01:00
parent aee04aba23
commit 911a57d451

View File

@@ -1867,7 +1867,12 @@ void TrackInfo::CloseTitleDrawFunction
// Draw title text
SetTrackInfoFont(dc);
int allowableWidth = rect.width - 42;
// Bug 1660 The 'k' of 'Audio Track' was being truncated.
// Constant of 32 found by counting pixels on a windows machine.
// I believe it's the size of the X close button + the size of the
// drop down arrow.
int allowableWidth = rect.width - 32;
wxCoord textWidth, textHeight;
dc->GetTextExtent(titleStr, &textWidth, &textHeight);