]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dcbase.cpp
check for LVS_OWNERDATA availability at compile and run-time
[wxWidgets.git] / src / common / dcbase.cpp
index c18a9ddc8707a6d0b006c79fc80d8c15104403ad..a0214a5cffac084d47e6724f49c5942533e49cac 100644 (file)
@@ -506,7 +506,7 @@ void wxDCBase::DrawLabel(const wxString& text,
         }
         else // not end of line
         {
-            if ( pc - text == indexAccel )
+            if ( pc - text.c_str() == indexAccel )
             {
                 // remeber to draw underscore here
                 GetTextExtent(curLine, &startUnderscore, NULL);