From: azv Date: Tue, 27 Nov 2018 10:20:26 +0000 (+0300) Subject: Issue #2750: Wrong GUI of Filling property panel X-Git-Tag: End2018~146 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e70a0c26019e52486e129ca0de3a36efcfb60a2d;p=modules%2Fshaper.git Issue #2750: Wrong GUI of Filling property panel Do not restore default parameters of Filling in initAttributes() if the related attributes are already initialized. --- diff --git a/src/BuildPlugin/BuildPlugin_Filling.cpp b/src/BuildPlugin/BuildPlugin_Filling.cpp index 0dec8a14d..73da8375d 100644 --- a/src/BuildPlugin/BuildPlugin_Filling.cpp +++ b/src/BuildPlugin/BuildPlugin_Filling.cpp @@ -67,8 +67,8 @@ void BuildPlugin_Filling::initAttributes() data()->addAttribute(TOLERANCE_3D_ID(), ModelAPI_AttributeDouble::typeId()); data()->addAttribute(APPROXIMATION_ID(), ModelAPI_AttributeBoolean::typeId()); - restoreDefaultParameters(); - string(ADVANCED_OPTIONS_ID())->setValue(""); + if (string(ADVANCED_OPTIONS_ID())->value().empty()) + restoreDefaultParameters(); } //=================================================================================================