]> git.saurik.com Git - wxWidgets.git/commitdiff
SetInsertionPointEnd should make the insert point visible, as SetInsertionPoint does
authorPaul Cornett <paulcor@bullseye.com>
Sat, 9 Dec 2006 17:50:50 +0000 (17:50 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Sat, 9 Dec 2006 17:50:50 +0000 (17:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/textctrl.cpp

index 05256cb4f8d07f52c0a396e40e4de6ca2921ede2..558d9064e56f9e0c8fb1c281d66f8f43955aa2ec 100644 (file)
@@ -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 )