From 4fc3975983c401a7fb95084ab2db10d609e36f05 Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Tue, 16 Dec 2008 15:52:36 +0000 Subject: * remove sp_item_i2root_affine and sp_item_i2r_affine and replace all calls by sp_item_i2doc_affine or sp_item_i2d_affine respectively * remove sp_root_bbox, root->c2p was considered in the wrong place there * in sp_item_i2doc_affine do not consider SP_ITEM(object)->transform for root node, because node does not have a transform attribute * fix style scaling for boolean operations (with viewBox) * fix zoom to fit drawing (with viewBox) * fix export area size for "export drawing" (with viewBox) * fix simultaneous movement of clone + original (with viewBox) (bzr r7010) --- src/sp-root.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/sp-root.cpp') diff --git a/src/sp-root.cpp b/src/sp-root.cpp index 5a9cce8fb..0cb3d3389 100644 --- a/src/sp-root.cpp +++ b/src/sp-root.cpp @@ -51,7 +51,6 @@ static void sp_root_modified(SPObject *object, guint flags); static Inkscape::XML::Node *sp_root_write(SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags); static NRArenaItem *sp_root_show(SPItem *item, NRArena *arena, unsigned int key, unsigned int flags); -static void sp_root_bbox(SPItem const *item, NRRect *bbox, Geom::Matrix const &transform, unsigned const flags); static void sp_root_print(SPItem *item, SPPrintContext *ctx); static SPGroupClass *parent_class; @@ -106,7 +105,6 @@ sp_root_class_init(SPRootClass *klass) sp_object_class->write = sp_root_write; sp_item_class->show = sp_root_show; - sp_item_class->bbox = sp_root_bbox; sp_item_class->print = sp_root_print; } @@ -640,22 +638,6 @@ sp_root_show(SPItem *item, NRArena *arena, unsigned int key, unsigned int flags) return ai; } -/** - * Virtual bbox callback. - */ -static void -sp_root_bbox(SPItem const *item, NRRect *bbox, Geom::Matrix const &transform, unsigned const flags) -{ - SPRoot const *root = SP_ROOT(item); - - if (((SPItemClass *) (parent_class))->bbox) { - Geom::Matrix const product( to_2geom(root->c2p) * transform ); - ((SPItemClass *) (parent_class))->bbox(item, bbox, - product, - flags); - } -} - /** * Virtual print callback. */ -- cgit v1.2.3