From 2f8e163d00340313bd4cc4cbde906c251fcf3b00 Mon Sep 17 00:00:00 2001 From: vsv Date: Sat, 28 Apr 2018 10:33:10 +0300 Subject: [PATCH] Issue #2464: Du not use default values in editing mode --- src/ModuleBase/ModuleBase_PagedContainer.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) -- 2.39.2