aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-10-30 01:14:45 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-30 01:51:39 +0800
commitd5270dae60c48d2929805def6caacd097b6c02dd (patch)
tree3c7053bbc4dc91a7a9a63da7a320f794661bfff8
parenta6a004b8f52688ca6e01c0f1340d42cfaf9239e1 (diff)
downloadgsoc2013-evolution-d5270dae60c48d2929805def6caacd097b6c02dd.tar
gsoc2013-evolution-d5270dae60c48d2929805def6caacd097b6c02dd.tar.gz
gsoc2013-evolution-d5270dae60c48d2929805def6caacd097b6c02dd.tar.bz2
gsoc2013-evolution-d5270dae60c48d2929805def6caacd097b6c02dd.tar.lz
gsoc2013-evolution-d5270dae60c48d2929805def6caacd097b6c02dd.tar.xz
gsoc2013-evolution-d5270dae60c48d2929805def6caacd097b6c02dd.tar.zst
gsoc2013-evolution-d5270dae60c48d2929805def6caacd097b6c02dd.zip
Fix gnome_canvas_rect_draw().
Need to subtract the pixmap offset from the rectangle's coordinates.
-rw-r--r--libgnomecanvas/gnome-canvas-rect.c4
1 files changed, 2 insertions, 2 deletions
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);