[clutter/clutter-1.18] text: Fix the implementation of delete_chars()



commit 0dc4986f666edb067f43f328756df9103d840086
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Jan 24 18:49:18 2014 +0000

    text: Fix the implementation of delete_chars()
    
    The internal delete_text() implementation takes a start and an end
    position, whereas the public delete_chars() method takes a number of
    characters to delete starting from the current cursor position.

 clutter/clutter-text.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c
index b97720a..90565ff 100644
--- a/clutter/clutter-text.c
+++ b/clutter/clutter-text.c
@@ -6040,7 +6040,7 @@ clutter_text_delete_chars (ClutterText *self,
 
   priv = self->priv;
 
-  clutter_text_real_delete_text (self, priv->position, n_chars);
+  clutter_text_real_delete_text (self, priv->position, priv->position + n_chars);
 
   if (priv->position > 0)
     clutter_text_set_cursor_position (self, priv->position - n_chars);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]