X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a756f210019dd5b51331b7181c816d3882146a30..f90566f5c386e6e5d80deecad9052ec53a0394ba:/src/common/resource.cpp diff --git a/src/common/resource.cpp b/src/common/resource.cpp index a6446d9710..782e63157c 100644 --- a/src/common/resource.cpp +++ b/src/common/resource.cpp @@ -1484,8 +1484,8 @@ wxFont wxResourceInterpretFontSpec(wxExpr *expr) if (faceNameExpr) faceName = faceNameExpr->StringValue(); - wxFont font(point, family, style, weight, (underline != 0), faceName); - return font; + return *wxTheFontList->FindOrCreateFont(point, family, style, weight, + (underline != 0), faceName); } // Separate file for the remainder of this, for BC++/Win16 @@ -2049,7 +2049,7 @@ wxChar* wxResourceParseWord(wxChar*s, int *i) struct wxResourceBitListStruct { - wxChar *word; + const wxChar *word; long bits; };