PartDesign/TaskDressUpParameters: disable edit of dressup features with broken supports
Also remove unused headers and fix spacing. A final fixup for issues addressed in: cb05b01 PartDesign/TaskDressUpParameters: fix a crash when editing a broken object
This commit is contained in:
committed by
Stefan Tröger
parent
1876c76f3c
commit
e28aaf4592
@@ -175,7 +175,7 @@ Part::Feature* TaskDressUpParameters::getBase(void) const
|
||||
// Unlikely but this may throw an exception in case we are started to edit an object which base feature
|
||||
// was deleted. This exception will be likely unhandled inside the dialog and pass upper, But an error
|
||||
// message inside the report view is better than a SEGFAULT.
|
||||
// TODO: generally this situation should be prevented in ViewProviderDressUp
|
||||
// Generally this situation should be prevented in ViewProviderDressUp::setEdit()
|
||||
return pcDressUp->getBaseObject();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user