[gnome-builder] libide: fix rectangle bounds for single char



commit 6886f05378a6daff6abc2702217a91583b2cf866
Author: Christian Hergert <christian hergert me>
Date:   Wed Mar 11 13:29:08 2015 -0700

    libide: fix rectangle bounds for single char

 libide/ide-source-view.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libide/ide-source-view.c b/libide/ide-source-view.c
index f406162..63ff692 100644
--- a/libide/ide-source-view.c
+++ b/libide/ide-source-view.c
@@ -365,7 +365,10 @@ get_rect_for_iters (GtkTextView       *text_view,
   end = *iter2;
 
   if (gtk_text_iter_equal (&begin, &end))
-    goto finish;
+    {
+      gtk_text_view_get_iter_location (text_view, &begin, &area);
+      goto finish;
+    }
 
   gtk_text_iter_order (&begin, &end);
 


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