Remove redundant wxClientDC::SetFont() call
wxClientDC inherits the font used by the associated window anyhow, there is no need to set it explicitly. No real changes, just a micro optimization.
This commit is contained in:
@@ -269,7 +269,6 @@ wxString wxStaticTextBase::Ellipsize(const wxString& label) const
|
||||
}
|
||||
|
||||
wxClientDC dc(const_cast<wxStaticTextBase*>(this));
|
||||
dc.SetFont(GetFont());
|
||||
|
||||
wxEllipsizeMode mode;
|
||||
if ( HasFlag(wxST_ELLIPSIZE_START) )
|
||||
|
Reference in New Issue
Block a user