]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't use deprecated font family style
authorJulian Smart <julian@anthemion.co.uk>
Sun, 20 May 2012 13:06:43 +0000 (13:06 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 20 May 2012 13:06:43 +0000 (13:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextbuffer.cpp

index 248781b2fb91947face0ef6faa894d989b17cfef..8149e447e5c0b6cd405ba7fb88e1cc9ec0befab8 100644 (file)
@@ -11596,7 +11596,7 @@ wxFont wxRichTextFontTableData::FindFont(const wxRichTextAttr& fontSpec, double
         }
         else
         {
-            wxFont font(fontSize, wxDEFAULT, fontSpec.GetFontStyle(), fontSpec.GetFontWeight(), fontSpec.GetFontUnderlined(), facename.c_str());
+            wxFont font(fontSize, wxFONTFAMILY_DEFAULT, fontSpec.GetFontStyle(), fontSpec.GetFontWeight(), fontSpec.GetFontUnderlined(), facename.c_str());
             if (fontSpec.HasFontStrikethrough() && fontSpec.GetFontStrikethrough())
                 font.SetStrikethrough(true);