From bf26e9e078259736dad24bed05794de1fcb42ef7 Mon Sep 17 00:00:00 2001 From: David Surovell Date: Mon, 6 Feb 2006 22:34:32 +0000 Subject: [PATCH] fix gcc v3.3.3 compiler crash git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/fontcmn.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/fontcmn.cpp b/src/common/fontcmn.cpp index bddce519a2..c0805e47ea 100644 --- a/src/common/fontcmn.cpp +++ b/src/common/fontcmn.cpp @@ -53,13 +53,14 @@ 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); -- 2.45.2