[evolution] Fix gnome_canvas_rect_draw().



commit d5270dae60c48d2929805def6caacd097b6c02dd
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Oct 29 13:14:45 2010 -0400

    Fix gnome_canvas_rect_draw().
    
    Need to subtract the pixmap offset from the rectangle's coordinates.

 libgnomecanvas/gnome-canvas-rect.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgnomecanvas/gnome-canvas-rect.c b/libgnomecanvas/gnome-canvas-rect.c
index 66d0258..8219da3 100644
--- a/libgnomecanvas/gnome-canvas-rect.c
+++ b/libgnomecanvas/gnome-canvas-rect.c
@@ -413,8 +413,8 @@ gnome_canvas_rect_draw (GnomeCanvasItem *item,
 
 	cairo_rectangle (
 		cr,
-		rect->priv->x1,
-		rect->priv->y1,
+		rect->priv->x1 - x,
+		rect->priv->y1 - y,
 		rect->priv->x2 - rect->priv->x1,
 		rect->priv->y2 - rect->priv->y1);
 



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