summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-05-01 04:48:44 +0000
committermental <mental@users.sourceforge.net>2006-05-01 04:48:44 +0000
commite9ad5f1bc4b2ec0ba3d4d32f4fb0ce8be3cf025a (patch)
treeb16ded47aa6d6607821f91d3c1e8a837c4f4f1ba
parentuse GC allocator for bitmap cache and transform (diff)
downloadinkscape-e9ad5f1bc4b2ec0ba3d4d32f4fb0ce8be3cf025a.tar.gz
inkscape-e9ad5f1bc4b2ec0ba3d4d32f4fb0ce8be3cf025a.zip
NRMatrix copy constructor appears deficient; avoid it for now
(bzr r646)
-rw-r--r--src/display/nr-arena-item.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/display/nr-arena-item.cpp b/src/display/nr-arena-item.cpp
index 714359dfd..97c769548 100644
--- a/src/display/nr-arena-item.cpp
+++ b/src/display/nr-arena-item.cpp
@@ -804,7 +804,8 @@ nr_arena_item_set_transform(NRArenaItem *item, NRMatrix const *transform)
/* Set to identity affine */
item->transform = NULL;
} else {
- if (!item->transform) item->transform = new (GC::ATOMIC) NRMatrix(*transform);
+ if (!item->transform) item->transform = new (GC::ATOMIC) NRMatrix();
+ *item->transform = *transform;
}
nr_arena_item_request_update (item, NR_ARENA_ITEM_STATE_ALL, TRUE);
}