fixed typo

This commit is contained in:
Ronny Standtke
2023-04-18 12:24:21 +02:00
parent 1be6c076ab
commit 1199f26401

View File

@@ -198,7 +198,7 @@ void CmdPartDesignBody::activated(int iMsg)
doCommand(Doc,"App.ActiveDocument.getObject('%s').Label = '%s'", bodyString, labelByteArray.constData());
if (baseFeature) {
if (partOfBaseFeature){
//withdraw base feature from Part, otherwise visibility mandess results
//withdraw base feature from Part, otherwise visibility madness results
doCommand(Doc,"App.activeDocument().%s.removeObject(App.activeDocument().%s)",
partOfBaseFeature->getNameInDocument(), baseFeature->getNameInDocument());
}