From: Paul Cornett Date: Sat, 9 Dec 2006 17:50:50 +0000 (+0000) Subject: SetInsertionPointEnd should make the insert point visible, as SetInsertionPoint does X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b3ffb94d27ad659b1bbe0a73ec155ba3d87e34dd SetInsertionPointEnd should make the insert point visible, as SetInsertionPoint does git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 05256cb4f8..558d9064e5 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -1247,18 +1247,7 @@ void wxTextCtrl::SetInsertionPoint( long pos ) void wxTextCtrl::SetInsertionPointEnd() { - wxCHECK_RET( m_text != NULL, wxT("invalid text ctrl") ); - - if ( IsMultiLine() ) - { - GtkTextIter end; - gtk_text_buffer_get_end_iter( m_buffer, &end ); - gtk_text_buffer_place_cursor( m_buffer, &end ); - } - else - { - gtk_editable_set_position( GTK_EDITABLE(m_text), -1 ); - } + SetInsertionPoint(-1); } void wxTextCtrl::SetEditable( bool editable )