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:
Vadim Zeitlin
2019-11-12 23:21:51 +01:00
parent 6223f67ccc
commit 73eabe2f12

View File

@@ -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) )