X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9342fdbe5e17b09025d53496dd983bc7eb99f21f..ce76f779c6cfd2155de825021cc645572fe43625:/src/common/fontcmn.cpp?ds=sidebyside diff --git a/src/common/fontcmn.cpp b/src/common/fontcmn.cpp index c2de94c21e..c4416f5bec 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; - int smallestBad; + int largestGood = 0; + int smallestBad = 0; bool initialGoodFound = false; bool initialBadFound = false;