diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-10-30 01:14:45 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-30 01:51:39 +0800 |
commit | d5270dae60c48d2929805def6caacd097b6c02dd (patch) | |
tree | 3c7053bbc4dc91a7a9a63da7a320f794661bfff8 /libgnomecanvas | |
parent | a6a004b8f52688ca6e01c0f1340d42cfaf9239e1 (diff) | |
download | gsoc2013-evolution-d5270dae60c48d2929805def6caacd097b6c02dd.tar.gz 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.
Diffstat (limited to 'libgnomecanvas')
-rw-r--r-- | 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 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); |