Remove useless wxFont::ActivatePrivateFonts()
Just "activate" the font immediately when adding it using AddPrivateFont(), nothing seems to be gained from having two functions and it just makes things more complicated both when implementing and when using the API.
This commit is contained in:
@@ -426,10 +426,6 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
|
||||
{
|
||||
wxLogWarning("Failed to add private font from \"%s\"", privfont);
|
||||
}
|
||||
else if ( !wxFont::ActivatePrivateFonts() )
|
||||
{
|
||||
wxLogWarning("Failed to activate the private fonts");
|
||||
}
|
||||
else
|
||||
{
|
||||
menuSelect->AppendSeparator();
|
||||
|
Reference in New Issue
Block a user