From: Vadim Zeitlin Date: Fri, 6 Jul 2001 18:09:08 +0000 (+0000) Subject: compilation fix for broken OS/2 compiler X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/328bfc22243e3d4672ddf626db4f78e4269c7275 compilation fix for broken OS/2 compiler git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index c18a9ddc87..a0214a5cff 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -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);