Apply the same fix as r4027.. r4053 exposed the same problem. There are still plenty of cases around aegisub that could create undefined behaviour if we forcibly set a font via it's name or face, we should only be using famlies for the default or shipping fonts with the program itself. see #1130

Originally committed to SVN as r4055.
This commit is contained in:
Amar Takhar 2010-01-27 16:08:01 +00:00
parent 283beba0fd
commit d03dc76dcc
1 changed files with 2 additions and 0 deletions

View File

@ -511,6 +511,8 @@ void AudioDisplay::DrawTimescale(wxDC &dc) {
dc.SetTextForeground(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNTEXT));
wxFont scaleFont;
scaleFont.SetFaceName(_T("Tahoma")); // FIXME: hardcoded font name
if (!scaleFont.IsOk())
scaleFont.SetFamily(wxFONTFAMILY_SWISS );
scaleFont.SetPointSize(8);
dc.SetFont(scaleFont);