]> git.saurik.com Git - wxWidgets.git/commitdiff
fix gcc v3.3.3 compiler crash
authorDavid Surovell <davids@osafoundation.org>
Mon, 6 Feb 2006 22:34:32 +0000 (22:34 +0000)
committerDavid Surovell <davids@osafoundation.org>
Mon, 6 Feb 2006 22:34:32 +0000 (22:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fontcmn.cpp

index bddce519a278ceb9fbed95026a13fed3c666c752..c0805e47ea1ad280e8b2638d2a4aee3ad45a8e42 100644 (file)
 
 static void AdjustFontSize(wxFont& font, wxDC& dc, const wxSize& pixelSize)
 {
-    int currentSize = font.GetPointSize();
+    int currentSize;
     int largestGood = 0;
     int smallestBad = 0;
 
     bool initialGoodFound = false;
     bool initialBadFound = false;
 
+    currentSize = font.GetPointSize();
     while (currentSize > 0)
     {
         dc.SetFont(font);