[gtk+] gtkpango: Count letters properly
- From: Benjamin Otte <otte src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk+] gtkpango: Count letters properly
 
- Date: Thu,  7 Jul 2011 01:39:02 +0000 (UTC)
 
commit a24ec1583b734a7edf2b333ab7f1c6deff5f1225
Author: Benjamin Otte <otte redhat com>
Date:   Thu Jul 7 03:37:52 2011 +0200
    gtkpango: Count letters properly
    
    The code was using the wrong variable and that then caused assertions
 gtk/gtkpango.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkpango.c b/gtk/gtkpango.c
index 70cd464..6af3a83 100644
--- a/gtk/gtkpango.c
+++ b/gtk/gtkpango.c
@@ -1235,7 +1235,7 @@ _gtk_pango_get_text_at (PangoLayout     *layout,
   switch (boundary_type)
     {
     case ATK_TEXT_BOUNDARY_CHAR:
-      start = _gtk_pango_move_chars (layout, start, 1);
+      end = _gtk_pango_move_chars (layout, end, 1);
       break;
 
     case ATK_TEXT_BOUNDARY_WORD_START:
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]