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



commit 88c410b73aa686e763b273208d9ffda1d416aaaf
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.
    
    (cherry picked from commit 0dc4986f666edb067f43f328756df9103d840086)
    Signed-off-by: Emmanuele Bassi <ebassi gnome org>

 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 a749739..2744ca2 100644
--- a/clutter/clutter-text.c
+++ b/clutter/clutter-text.c
@@ -6032,7 +6032,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]