From e3cb990e68ce63b1200937a8e273a6b6b7893491 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 27 Oct 2008 14:29:16 +0000 Subject: [PATCH] Set cursor to in wxTextCtrk::SetSelection git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/textctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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