From: vsv Date: Sat, 28 Apr 2018 07:33:10 +0000 (+0300) Subject: Issue #2464: Du not use default values in editing mode X-Git-Tag: V8_5_0rc2~8^2~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2f8e163d00340313bd4cc4cbde906c251fcf3b00;p=modules%2Fshaper.git Issue #2464: Du not use default values in editing mode --- diff --git a/src/ModuleBase/ModuleBase_PagedContainer.cpp b/src/ModuleBase/ModuleBase_PagedContainer.cpp index 2cb2fddde..f98710943 100644 --- a/src/ModuleBase/ModuleBase_PagedContainer.cpp +++ b/src/ModuleBase/ModuleBase_PagedContainer.cpp @@ -100,8 +100,12 @@ bool ModuleBase_PagedContainer::restoreValueCustom() DataPtr aData = myFeature->data(); AttributeStringPtr aStringAttr = aData->string(attributeID()); - QString aCaseId = QString::fromStdString(aDefVal.empty()? - aStringAttr->value() : aDefVal); + QString aCaseId; + if (myIsEditing) + aCaseId = QString::fromStdString(aStringAttr->value()); + else + aCaseId = QString::fromStdString(aDefVal.empty()? aStringAttr->value() : aDefVal); + myIsFirst = false; int idx = myCaseIds.indexOf(aCaseId); if (idx == -1)