[gtk+] image: Don't add border twice



commit 49c618c59cb9ac1d1dcb95dd196875f1925a1fef
Author: Benjamin Otte <otte redhat com>
Date:   Fri Jun 15 03:30:52 2012 +0200

    image: Don't add border twice
    
    Failed to delete these lines in d40c496e6eacb9f95c2b27eaebf58d320c2b9387

 gtk/gtkimage.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index e32b1b7..988605a 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -1401,9 +1401,6 @@ gtk_image_draw (GtkWidget *widget,
   x = floor ((gtk_widget_get_allocated_width (widget) - width) * xalign) + border.left;
   y = floor ((gtk_widget_get_allocated_height (widget) - height) * yalign) + border.top;
 
-  x += border.left;
-  y += border.top;
-
   if (gtk_image_get_storage_type (image) == GTK_IMAGE_ANIMATION)
     {
       GdkPixbuf *pixbuf = get_animation_frame (image);



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