Set cursor to <from> in wxTextCtrk::SetSelection

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2008-10-27 14:29:16 +00:00
parent 5edfb38495
commit e3cb990e68

View File

@ -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