X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06052f3f874cc39eb5365a3b4bbf3e929534cbe8..639e001d875797ec81217f6a9b8cd93285b02e80:/src/common/dcbase.cpp diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index baeb1c5ee8..ef8918bbb5 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -25,10 +25,15 @@ #endif #include "wx/dc.h" -#include "wx/math.h" + +#ifndef WX_PRECOMP + #include "wx/math.h" +#endif // bool wxDCBase::sm_cacheing = false; +IMPLEMENT_ABSTRACT_CLASS(wxDCBase, wxObject) + // ============================================================================ // implementation // ============================================================================ @@ -412,7 +417,7 @@ bool wxDCBase::DoGetPartialTextExtents(const wxString& text, wxArrayInt& widths) { int totalWidth = 0; - const size_t len = text.Length(); + const size_t len = text.length(); widths.Empty(); widths.Add(0, len);