X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetPointInput.cpp;h=8b8d85e3e224cbbaf98bb1a663fd9255a2b5d29e;hb=63d86e00e1e6a482fcad527ae0b883deccceed11;hp=ca7c3c055209afb2a4ecff874246bb7de8230777;hpb=3c987a8d1b88765224e3ac1388afb91eae17e4d3;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetPointInput.cpp b/src/ModuleBase/ModuleBase_WidgetPointInput.cpp index ca7c3c055..8b8d85e3e 100644 --- a/src/ModuleBase/ModuleBase_WidgetPointInput.cpp +++ b/src/ModuleBase/ModuleBase_WidgetPointInput.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2020 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -151,6 +151,7 @@ bool ModuleBase_WidgetPointInput::storeValueCustom() } aAttr->setText(aXText, aYText, aZText); } else { + aAttr->setText("", "", ""); aAttr->setValue(myXSpin->value(), myYSpin->value(), myZSpin->value()); } } else { @@ -196,6 +197,7 @@ bool ModuleBase_WidgetPointInput::restoreValueCustom() myYSpin->setValue(myDefaultValue[1]); myZSpin->setValue(myDefaultValue[2]); } + setValueState(Stored); return true; } return false;