diff options
| author | Jabiertxof <jtx@jtx> | 2017-01-24 00:39:06 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx> | 2017-01-24 00:39:06 +0000 |
| commit | da07c5edaeefe35a92662e42579b3e0b36621cbb (patch) | |
| tree | bd783169733a4b06927601fca59ec569dc5317b5 /src/file.cpp | |
| parent | Update to trunk (diff) | |
| parent | fix nodes reverting back during editing (diff) | |
| download | inkscape-da07c5edaeefe35a92662e42579b3e0b36621cbb.tar.gz inkscape-da07c5edaeefe35a92662e42579b3e0b36621cbb.zip | |
Remove some code and make dependant of rotate copies
(bzr r15295.1.63)
Diffstat (limited to 'src/file.cpp')
| -rw-r--r-- | src/file.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/file.cpp b/src/file.cpp index 9e96361c3..e8248bb8e 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -1631,8 +1631,12 @@ void sp_import_document(SPDesktop *desktop, SPDocument *clipdoc, bool in_place) for (Inkscape::XML::Node *obj = clipboard->firstChild() ; obj ; obj = obj->next()) { if(target_document->getObjectById(obj->attribute("id"))) continue; Inkscape::XML::Node *obj_copy = obj->duplicate(target_document->getReprDoc()); - target_parent->appendChild(obj_copy); + SPObject * pasted = desktop->currentLayer()->appendChildRepr(obj_copy); Inkscape::GC::release(obj_copy); + SPLPEItem * pasted_lpe_item = dynamic_cast<SPLPEItem *>(pasted); + if (pasted_lpe_item){ + pasted_lpe_item->forkPathEffectsIfNecessary(1); + } pasted_objects_not.push_back(obj_copy); } Inkscape::Selection *selection = desktop->getSelection(); |
