X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d78aa51b17c8d218d6392c7a4985a60d4a596c46..5ca21fe7bfda18e2da4e17eb529c4dfa0c824db2:/src/msw/textmeasure.cpp diff --git a/src/msw/textmeasure.cpp b/src/msw/textmeasure.cpp index 48af0cf499..232053d7f8 100644 --- a/src/msw/textmeasure.cpp +++ b/src/msw/textmeasure.cpp @@ -150,8 +150,11 @@ void wxTextMeasure::DoGetTextExtent(const wxString& string, bool wxTextMeasure::DoGetPartialTextExtents(const wxString& text, wxArrayInt& widths, - double WXUNUSED(scaleX)) + double scaleX) { + if ( !m_hdc ) + return wxTextMeasureBase::DoGetPartialTextExtents(text, widths, scaleX); + static int maxLenText = -1; static int maxWidth = -1;