PartDesign: [skip ci] fix possible segmentation fault in destructors of dressup task panels
This commit is contained in:
@@ -196,10 +196,6 @@ double TaskChamferParameters::getLength(void) const
|
||||
|
||||
TaskChamferParameters::~TaskChamferParameters()
|
||||
{
|
||||
// assure the fillets are shown
|
||||
showObject();
|
||||
// remove any highlights and selections
|
||||
DressUpView->highlightReferences(false);
|
||||
Gui::Selection().clearSelection();
|
||||
Gui::Selection().rmvSelectionGate();
|
||||
|
||||
|
||||
@@ -302,10 +302,6 @@ bool TaskDraftParameters::getReversed(void) const
|
||||
|
||||
TaskDraftParameters::~TaskDraftParameters()
|
||||
{
|
||||
// assure the fillets are shown
|
||||
showObject();
|
||||
// remove any highlights and selections
|
||||
DressUpView->highlightReferences(false);
|
||||
Gui::Selection().clearSelection();
|
||||
Gui::Selection().rmvSelectionGate();
|
||||
|
||||
|
||||
@@ -225,10 +225,11 @@ void TaskDressUpParameters::hideObject()
|
||||
|
||||
void TaskDressUpParameters::showObject()
|
||||
{
|
||||
DressUpView->getObject()->Visibility.setValue(true);
|
||||
App::DocumentObject* base = getBase();
|
||||
if (base)
|
||||
if (base) {
|
||||
DressUpView->getObject()->Visibility.setValue(true);
|
||||
base->Visibility.setValue(false);
|
||||
}
|
||||
}
|
||||
|
||||
Part::Feature* TaskDressUpParameters::getBase(void) const
|
||||
|
||||
@@ -197,10 +197,6 @@ double TaskFilletParameters::getLength(void) const
|
||||
|
||||
TaskFilletParameters::~TaskFilletParameters()
|
||||
{
|
||||
// assure the fillets are shown
|
||||
showObject();
|
||||
// remove any highlights and selections
|
||||
DressUpView->highlightReferences(false);
|
||||
Gui::Selection().clearSelection();
|
||||
Gui::Selection().rmvSelectionGate();
|
||||
|
||||
|
||||
@@ -276,10 +276,6 @@ int TaskThicknessParameters::getMode(void) const {
|
||||
|
||||
TaskThicknessParameters::~TaskThicknessParameters()
|
||||
{
|
||||
// assure the fillets are shown
|
||||
showObject();
|
||||
// remove any highlights and selections
|
||||
DressUpView->highlightReferences(false);
|
||||
Gui::Selection().clearSelection();
|
||||
Gui::Selection().rmvSelectionGate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user