From: Mattia Barbon Date: Wed, 2 Apr 2003 20:50:21 +0000 (+0000) Subject: No real change. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/236de6f62add164687ca8461c3e1aa147598909d No real change. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/motif/textctrl.cpp b/src/motif/textctrl.cpp index 26d60b1878..b518e2fe45 100644 --- a/src/motif/textctrl.cpp +++ b/src/motif/textctrl.cpp @@ -401,7 +401,7 @@ void wxTextCtrl::WriteText(const wxString& text) void wxTextCtrl::AppendText(const wxString& text) { - long textPosition = GetLastPosition() + strlen(text); + long textPosition = GetLastPosition() + text.length(); XmTextInsert ((Widget) m_mainWidget, GetLastPosition(), wxConstCast(text.c_str(), char)); XtVaSetValues ((Widget) m_mainWidget, XmNcursorPosition, textPosition, NULL);