]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for broken OS/2 compiler
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 6 Jul 2001 18:09:08 +0000 (18:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 6 Jul 2001 18:09:08 +0000 (18:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dcbase.cpp

index c18a9ddc8707a6d0b006c79fc80d8c15104403ad..a0214a5cffac084d47e6724f49c5942533e49cac 100644 (file)
@@ -506,7 +506,7 @@ void wxDCBase::DrawLabel(const wxString& text,
         }
         else // not end of line
         {
         }
         else // not end of line
         {
-            if ( pc - text == indexAccel )
+            if ( pc - text.c_str() == indexAccel )
             {
                 // remeber to draw underscore here
                 GetTextExtent(curLine, &startUnderscore, NULL);
             {
                 // remeber to draw underscore here
                 GetTextExtent(curLine, &startUnderscore, NULL);