]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/textctrl.cpp
Typo correction
[wxWidgets.git] / 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 )