From 236de6f62add164687ca8461c3e1aa147598909d Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Wed, 2 Apr 2003 20:50:21 +0000 Subject: [PATCH] No real change. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/textctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2