diff options
| author | Thomas Holder <speleo3@users.sourceforge.net> | 2008-12-16 15:52:36 +0000 |
|---|---|---|
| committer | speleo3 <speleo3@users.sourceforge.net> | 2008-12-16 15:52:36 +0000 |
| commit | 4fc3975983c401a7fb95084ab2db10d609e36f05 (patch) | |
| tree | aab43b87dcf998923b3d7b1c21b2c5dfa4e15f17 /src/sp-root.cpp | |
| parent | Added "Add" button to the SVG Fonts dialog. (diff) | |
| download | inkscape-4fc3975983c401a7fb95084ab2db10d609e36f05.tar.gz inkscape-4fc3975983c401a7fb95084ab2db10d609e36f05.zip | |
* 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 <svg> 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)
Diffstat (limited to 'src/sp-root.cpp')
| -rw-r--r-- | src/sp-root.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
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; } @@ -641,22 +639,6 @@ sp_root_show(SPItem *item, NRArena *arena, unsigned int key, unsigned int flags) } /** - * 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. */ static void |
