diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 0ca5cdad68..8d5648bd77 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -1344,7 +1344,7 @@ void wxTextCtrl::SetSelection( long from, long to ) gtk_text_buffer_get_iter_at_offset( m_buffer, &fromi, from ); gtk_text_buffer_get_iter_at_offset( m_buffer, &toi, to ); - gtk_text_buffer_place_cursor( m_buffer, &toi ); + gtk_text_buffer_place_cursor( m_buffer, &fromi ); gtk_text_buffer_move_mark_by_name( m_buffer, "selection_bound", &fromi ); } else // single line