From: Vadim Zeitlin Date: Sun, 3 Oct 2004 13:38:22 +0000 (+0000) Subject: oops, AdjustFontSize() had no effect; fixed (patch 1037952) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8093538cc51370a3556624e3734af708cc43e9e8?ds=inline oops, AdjustFontSize() had no effect; fixed (patch 1037952) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/fontcmn.cpp b/src/common/fontcmn.cpp index dd3544a26b..337359dc07 100644 --- a/src/common/fontcmn.cpp +++ b/src/common/fontcmn.cpp @@ -54,11 +54,11 @@ // 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;