PD: [skip ci] disable undo/redo for the tmp. document created by the SubShapeBinder

This commit is contained in:
wmayer
2022-10-24 16:50:50 +02:00
parent 72af60c22e
commit c98545b6ca

View File

@@ -571,6 +571,7 @@ void SubShapeBinder::update(SubShapeBinder::UpdateOption options) {
auto tmpDoc = App::GetApplication().newDocument(
"_tmp_binder", nullptr, false, true);
tmpDoc->setUndoMode(0);
auto objs = tmpDoc->copyObject({ obj }, true, true);
if (!objs.empty()) {
for (auto it = objs.rbegin(); it != objs.rend(); ++it)