]> git.saurik.com Git - wxWidgets.git/commitdiff
Set cursor to <from> in wxTextCtrk::SetSelection
authorRobert Roebling <robert@roebling.de>
Mon, 27 Oct 2008 14:29:16 +0000 (14:29 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 27 Oct 2008 14:29:16 +0000 (14:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/textctrl.cpp

index 0ca5cdad6899f6853903c57d6fb76070c5b86d69..8d5648bd771f946606161dbfcef2c8e2493d72a4 100644 (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