From be2bb52796ae1be001882da114e8272c4c746af0 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 13 Feb 2015 23:12:51 +0100 Subject: [PATCH] + open transaction when duplicating selection --- src/Gui/CommandDoc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Gui/CommandDoc.cpp b/src/Gui/CommandDoc.cpp index c5fc734ec..904ccdbf7 100644 --- a/src/Gui/CommandDoc.cpp +++ b/src/Gui/CommandDoc.cpp @@ -951,11 +951,13 @@ void StdCmdDuplicateSelection::activated(int iMsg) } App::Document* doc = App::GetApplication().getActiveDocument(); if (doc) { + doc->openTransaction("Duplicate"); // restore objects from file and add to active document Base::ifstream str(fi, std::ios::in | std::ios::binary); MergeDocuments mimeView(doc); mimeView.importObjects(str); str.close(); + doc->commitTransaction(); } fi.deleteFile(); }