From 664ad22f4ca868dd87fe55f64627b61f1a7f89e7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 3 Apr 2002 13:01:34 +0000 Subject: [PATCH] reuse the fonts in the resource loading code (patch from Tom Felici) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/resource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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