PartDesign: show error on SubShapeBinder CopyOnChange failure

The failure is not obivous as it would have been occurred in a
hidden temporary document.
This commit is contained in:
Zheng, Lei
2021-10-17 21:52:33 +08:00
committed by Chris Hennes
parent f6c2688319
commit d286a54fc1
2 changed files with 41 additions and 19 deletions

View File

@@ -367,7 +367,11 @@ void ViewProviderSubShapeBinder::updatePlacement(bool transaction) {
if(!transaction) {
if(relative)
self->Context.setValue(parent,parentSub.c_str());
self->update(PartDesign::SubShapeBinder::UpdateForced);
try {
self->update(PartDesign::SubShapeBinder::UpdateForced);
} catch (Base::Exception &e) {
e.ReportException();
}
return;
}