diff options
| author | Martin Owens <doctormo@gmail.com> | 2013-04-21 00:16:01 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2013-04-21 00:16:01 +0000 |
| commit | 5a6b3ffac5aa76386cc2c2db8bd8952a8325b488 (patch) | |
| tree | 5832cb29901846bc53ec8358dcc3e9d34b4200b2 /src | |
| parent | Use wildcard blob for symbols Makefile.am (diff) | |
| download | inkscape-5a6b3ffac5aa76386cc2c2db8bd8952a8325b488.tar.gz inkscape-5a6b3ffac5aa76386cc2c2db8bd8952a8325b488.zip | |
Remove GLib error and remove some cruft
(bzr r12286)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/clipboard.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp index f2b9fb02a..72ddd90a9 100644 --- a/src/ui/clipboard.cpp +++ b/src/ui/clipboard.cpp @@ -332,6 +332,10 @@ void ClipboardManagerImpl::copySymbol(Inkscape::XML::Node* symbol, gchar const* use->setAttribute("style", style ); _root->appendChild(use); + // This min and max sets offsets, we don't have any so set to zero. + sp_repr_set_point(_clipnode, "min", Geom::Point(0,0)); + sp_repr_set_point(_clipnode, "max", Geom::Point(0,0)); + fit_canvas_to_drawing(_clipboardSPDoc); _setClipboardTargets(); } @@ -767,14 +771,6 @@ void ClipboardManagerImpl::_copyUsedDefs(SPItem *item) } } - // Copy symbols: We may want to be more clever... - // if (SP_IS_USE(item)) { - // SPObject *symbol = SP_USE(item)->child; - // if( symbol && SP_IS_SYMBOL(symbol) ) { - // _copyNode(symbol->getRepr(), _doc, _defs); - // } - // } - // recurse for (SPObject *o = item->children ; o != NULL ; o = o->next) { if (SP_IS_ITEM(o)) { |
