]> git.saurik.com Git - wxWidgets.git/commitdiff
oops, AdjustFontSize() had no effect; fixed (patch 1037952)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Oct 2004 13:38:22 +0000 (13:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Oct 2004 13:38:22 +0000 (13:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fontcmn.cpp

index dd3544a26be36ee1f82b80d4debab44528168ea4..337359dc073db63ff2123e404368384c13952dc8 100644 (file)
 // helper functions
 // ----------------------------------------------------------------------------
 
-static void AdjustFontSize(wxFont font, wxDC& dc, const wxSize& pixelSize)
+static void AdjustFontSize(wxFont& font, wxDC& dc, const wxSize& pixelSize)
 {
     int currentSize = font.GetPointSize();
-    int largestGood wxDUMMY_INITIALIZE(0);
-    int smallestBad wxDUMMY_INITIALIZE(0);
+    int largestGood = 0;
+    int smallestBad = 0;
 
     bool initialGoodFound = false;
     bool initialBadFound = false;