remove wxTextAttr::CreateFont(); return wxNullFont from GetFont() if we have no font attributes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user