X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c7a49742ec6b4effe012dc7204db307e1267bf6a..ee6c519a4b1c8e919c1353b977e6396a160bc4b3:/src/msw/font.cpp diff --git a/src/msw/font.cpp b/src/msw/font.cpp index b0e73148cb..060139df72 100644 --- a/src/msw/font.cpp +++ b/src/msw/font.cpp @@ -841,7 +841,7 @@ bool wxFont::DoCreate(int pointSize, // wxDEFAULT is a valid value for the font size too so we must treat it // specially here (otherwise the size would be 70 == wxDEFAULT value) - if ( pointSize == wxDEFAULT ) + if ( pointSize == wxDEFAULT || pointSize == -1 ) { pointSize = wxNORMAL_FONT->GetPointSize(); }