// Purpose: wxTextMeasure implementation for wxMSW
// Author: Manuel Martin
// Created: 2012-10-05
-// RCS-ID: $Id:
// Copyright: (c) 1997-2012 wxWidgets team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
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;