[gtksourceview/gnome-3-24] GutterRendererPixbuf: fix LAST alignment



commit ce4ab926fe90dc203ec277a95ab9f18f543974b9
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Jan 22 07:07:50 2017 +1000

    GutterRendererPixbuf: fix LAST alignment
    
    Prior to this, FIRST and LAST were equivalent, because the starting y
    coordinate was based on the cell, not the line.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777587

 gtksourceview/gtksourcegutterrendererpixbuf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourcegutterrendererpixbuf.c b/gtksourceview/gtksourcegutterrendererpixbuf.c
index 668eff4..d04d826 100644
--- a/gtksourceview/gtksourcegutterrendererpixbuf.c
+++ b/gtksourceview/gtksourcegutterrendererpixbuf.c
@@ -72,7 +72,7 @@ center_on (GtkSourceGutterRenderer *renderer,
        gtk_text_view_get_iter_location (view, iter, &location);
 
        *x = cell_area->x + (cell_area->width - width) * xalign;
-       *y = cell_area->y + (location.height - height) * yalign;
+       *y = location.y + (location.height - height) * yalign;
 }
 
 static void


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