From: jfa Date: Fri, 19 Mar 2021 10:56:33 +0000 (+0300) Subject: Bos #24055 [CEA 24054] Editing ExtrusionCut object updates other. X-Git-Tag: V9_7_0a1~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3ce3e69a217055142b03d67add35d054979a6340;p=modules%2Fshaper.git Bos #24055 [CEA 24054] Editing ExtrusionCut object updates other. --- diff --git a/src/ModuleBase/ModuleBase_PagedContainer.cpp b/src/ModuleBase/ModuleBase_PagedContainer.cpp index 2b0117acf..0489eef20 100644 --- a/src/ModuleBase/ModuleBase_PagedContainer.cpp +++ b/src/ModuleBase/ModuleBase_PagedContainer.cpp @@ -103,11 +103,7 @@ bool ModuleBase_PagedContainer::restoreValueCustom() AttributeStringPtr aStringAttr = aData->string(attributeID()); QString aCaseId; if (aStringAttr->isInitialized()) { - if (myIsEditing) - aCaseId = QString::fromStdString(aStringAttr->value()); - else { - aCaseId = QString::fromStdString(aDefVal.empty() ? aStringAttr->value() : aDefVal); - } + aCaseId = QString::fromStdString(aStringAttr->value()); int idx = myCaseIds.indexOf(aCaseId); if (idx == -1) idx = currentPageIndex();