summaryrefslogtreecommitdiffstats
path: root/src/widgets/icon.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-08-15 01:19:33 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-08-15 01:19:33 +0000
commit2f3d79db2fad212c8aa1bff7bb13132a34541aff (patch)
treeec16b5e4cdd3d69dd6a0ee35b48e0379b679d4f2 /src/widgets/icon.cpp
parentCompletely remove NRPixBlock (diff)
downloadinkscape-2f3d79db2fad212c8aa1bff7bb13132a34541aff.tar.gz
inkscape-2f3d79db2fad212c8aa1bff7bb13132a34541aff.zip
Make nr_arena_invoke_render expect an already transformed context,
to remove a limitation to integer translations imposed by NRRectL (bzr r9508.1.68)
Diffstat (limited to 'src/widgets/icon.cpp')
-rw-r--r--src/widgets/icon.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/icon.cpp b/src/widgets/icon.cpp
index 4ba86b295..d8f451ed7 100644
--- a/src/widgets/icon.cpp
+++ b/src/widgets/icon.cpp
@@ -1023,6 +1023,7 @@ sp_icon_doc_icon( SPDocument *doc, NRArenaItem *root,
cairo_surface_t *s = cairo_image_surface_create_for_data(px,
CAIRO_FORMAT_ARGB32, psize, psize, stride);
cairo_t *ct = cairo_create(s);
+ cairo_translate(ct, -ua.x0, -ua.y0);
nr_arena_item_invoke_render(ct, root, &ua, NULL,
NR_ARENA_ITEM_RENDER_NO_CACHE );