]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/textmeasure.cpp
missing commit
[wxWidgets.git] / src / msw / textmeasure.cpp
index 48af0cf4991f7abbf967953ed2ed31a1a2a4a864..232053d7f8a58bf6e5950f79d68a1eb4789cccfe 100644 (file)
@@ -150,8 +150,11 @@ void wxTextMeasure::DoGetTextExtent(const wxString& string,
 
 bool wxTextMeasure::DoGetPartialTextExtents(const wxString& text,
                                             wxArrayInt& widths,
 
 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;
 
     static int maxLenText = -1;
     static int maxWidth = -1;