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:
parent
5edfb38495
commit
e3cb990e68
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user