if (!isError) {
myDoc->SetUndoLimit(UNDO_LIMIT);
// to avoid the problem that feature is created in the current, not this, document
- Model_Session::get()->setActiveDocument(anApp->getDocument(myID));
+ Model_Session::get()->setActiveDocument(anApp->getDocument(myID), false);
synchronizeFeatures(false, true);
+ Model_Session::get()->setActiveDocument(Model_Session::get()->moduleDocument(), false);
+ Model_Session::get()->setActiveDocument(anApp->getDocument(myID), true);
}
return !isError;
}