From d5270dae60c48d2929805def6caacd097b6c02dd Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 29 Oct 2010 13:14:45 -0400 Subject: Fix gnome_canvas_rect_draw(). Need to subtract the pixmap offset from the rectangle's coordinates. --- libgnomecanvas/gnome-canvas-rect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libgnomecanvas') diff --git a/libgnomecanvas/gnome-canvas-rect.c b/libgnomecanvas/gnome-canvas-rect.c index 66d0258dca..8219da38e1 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); -- cgit