avoid permanently throwing exception by attach engine

This commit is contained in:
wmayer
2017-09-13 18:42:33 +02:00
parent 9d83392a4f
commit e34a623aeb

View File

@@ -118,7 +118,9 @@ bool AttachExtension::positionBySupport()
if (!_attacher)
throw Base::RuntimeError("AttachExtension: can't positionBySupport, because no AttachEngine is set.");
updateAttacherVals();
try{
try {
if (_attacher->mapMode == mmDeactivated)
return false;
getPlacement().setValue(_attacher->calculateAttachedPlacement(getPlacement().getValue()));
return true;
} catch (ExceptionCancel) {