X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fbfb8bcc3fa17e079d4219655b173f8ed2ccc65a..a3e9caa2b55fcc62e0ac8262a45ee83d0c6ce453:/src/common/fontcmn.cpp diff --git a/src/common/fontcmn.cpp b/src/common/fontcmn.cpp index bddce519a2..743667fa2a 100644 --- a/src/common/fontcmn.cpp +++ b/src/common/fontcmn.cpp @@ -53,13 +53,16 @@ static void AdjustFontSize(wxFont& font, wxDC& dc, const wxSize& pixelSize) { - int currentSize = font.GetPointSize(); + 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) { dc.SetFont(font); @@ -297,14 +300,6 @@ void wxFontBase::SetNativeFontInfoUserDesc(const wxString& info) } } -wxFont& wxFont::operator=(const wxFont& font) -{ - if ( this != &font ) - Ref(font); - - return (wxFont &)*this; -} - bool wxFontBase::operator==(const wxFont& font) const { // either it is the same font, i.e. they share the same common data or they