Compilation fix for wxRichTextCtrl.
Don't use wxDEFAULT, there is no match for wxFont ctor taking wxSize and it, use wxFONTFAMILY_DEFAULT instead. Also remove the unnecessary .c_str() from the same wxFont ctor call, there is really no reason at all to have it there. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ef5fe20c79
commit
b42e4b3e5a
@ -11588,7 +11588,7 @@ wxFont wxRichTextFontTableData::FindFont(const wxRichTextAttr& fontSpec, double
|
||||
{
|
||||
if (fontSpec.HasFontPixelSize() && !fontSpec.HasFontPointSize())
|
||||
{
|
||||
wxFont font(wxSize(0, fontSize), wxDEFAULT, fontSpec.GetFontStyle(), fontSpec.GetFontWeight(), fontSpec.GetFontUnderlined(), facename.c_str());
|
||||
wxFont font(wxSize(0, fontSize), wxFONTFAMILY_DEFAULT, fontSpec.GetFontStyle(), fontSpec.GetFontWeight(), fontSpec.GetFontUnderlined(), facename);
|
||||
if (fontSpec.HasFontStrikethrough() && fontSpec.GetFontStrikethrough())
|
||||
font.SetStrikethrough(true);
|
||||
m_hashMap[spec] = font;
|
||||
|
Loading…
Reference in New Issue
Block a user