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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user