It wasn't there before wxTextMEasure changes and it doesn't seem obvious why
should it be there, it should be possible to measure the text using the
default wxDC font without setting one explicitly.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72706
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxMSWDCImpl::DoGetPartialTextExtents(const wxString& text, wxArrayInt& widths) const
{
- wxCHECK_MSG( GetFont().IsOk(), false, wxT("Invalid font") );
-
wxTextMeasure txm(GetOwner(), NULL); // don't change the font
return txm.GetPartialTextExtents(text, widths, 1.0);
}