X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c3c990ecf8be60d40e6b6ac3835064daee321aa..a899707131e8b94a628c44309517128707ef6b57:/src/common/textcmn.cpp diff --git a/src/common/textcmn.cpp b/src/common/textcmn.cpp index 1e0a0a0f56..c69ba3aea1 100644 --- a/src/common/textcmn.cpp +++ b/src/common/textcmn.cpp @@ -297,8 +297,11 @@ bool wxTextAttr::EqPartial(const wxTextAttr& attr, int flags) const } // Create font from font attributes. -wxFont wxTextAttr::CreateFont() const +wxFont wxTextAttr::GetFont() const { + if ( !HasFont() ) + return wxNullFont; + int fontSize = 10; if (HasFontSize()) fontSize = GetFontSize();