X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/903506828b7d042350eae97b5014a63ffca17ef5..2245b2b2c3339ecf023e5880caa803610a5d1907:/src/common/resource.cpp diff --git a/src/common/resource.cpp b/src/common/resource.cpp index e012fd8929..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