X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..30a72e62977e4c532ae2f265db72535a5cccbbab:/src/common/dcbase.cpp?ds=sidebyside 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);