No real change.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -401,7 +401,7 @@ void wxTextCtrl::WriteText(const wxString& text)
|
|||||||
|
|
||||||
void wxTextCtrl::AppendText(const wxString& text)
|
void wxTextCtrl::AppendText(const wxString& text)
|
||||||
{
|
{
|
||||||
long textPosition = GetLastPosition() + strlen(text);
|
long textPosition = GetLastPosition() + text.length();
|
||||||
XmTextInsert ((Widget) m_mainWidget, GetLastPosition(),
|
XmTextInsert ((Widget) m_mainWidget, GetLastPosition(),
|
||||||
wxConstCast(text.c_str(), char));
|
wxConstCast(text.c_str(), char));
|
||||||
XtVaSetValues ((Widget) m_mainWidget, XmNcursorPosition, textPosition, NULL);
|
XtVaSetValues ((Widget) m_mainWidget, XmNcursorPosition, textPosition, NULL);
|
||||||
|
Reference in New Issue
Block a user