From d141b21808f64dcd500b52ed17ebef5ad0a4963f Mon Sep 17 00:00:00 2001 From: David Surovell Date: Mon, 6 Feb 2006 22:53:31 +0000 Subject: [PATCH] tweaks and comments to previous commit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/fontcmn.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/fontcmn.cpp b/src/common/fontcmn.cpp index c0805e47ea..5eaa887e46 100644 --- a/src/common/fontcmn.cpp +++ b/src/common/fontcmn.cpp @@ -53,13 +53,15 @@ static void AdjustFontSize(wxFont& font, wxDC& dc, const wxSize& pixelSize) { - int currentSize; + int currentSize = 0; int largestGood = 0; int smallestBad = 0; bool initialGoodFound = false; bool initialBadFound = false; + // NB: this assignment was separated from the variable definition + // in order to fix a gcc v3.3.3 compiler crash currentSize = font.GetPointSize(); while (currentSize > 0) { -- 2.45.2