]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2464: Du not use default values in editing mode
authorvsv <vsv@opencascade.com>
Sat, 28 Apr 2018 07:33:10 +0000 (10:33 +0300)
committervsv <vsv@opencascade.com>
Sat, 28 Apr 2018 07:33:10 +0000 (10:33 +0300)
src/ModuleBase/ModuleBase_PagedContainer.cpp

index 2cb2fddde8ec676553ea7af8cd07c151a0ebfdd6..f987109431f9ffbe7f8e5eca82dd9dcbd1d9b466 100644 (file)
@@ -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)