]> SALOME platform Git repositories - modules/yacs.git/commitdiff
Salome HOME
Correction of bug revealed by otgui with multi lock/unlock session.
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 8 Feb 2016 07:43:19 +0000 (08:43 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 8 Feb 2016 07:43:19 +0000 (08:43 +0100)
src/evalyfx/YACSEvalPort.cxx
src/evalyfx/YACSEvalPort.hxx
src/evalyfx/YACSEvalResource.cxx

index 190fa1ef2d636850dc50072ca72ee2707e9a483f..a1658c85d2576054114d3ec71feffc610d7b4cd4 100644 (file)
@@ -123,6 +123,11 @@ bool YACSEvalInputPort::isOKForLock() const
   return hasDefaultValueDefined();
 }
 
+bool YACSEvalInputPort::isLocked() const
+{
+  return _isLocked;
+}
+
 bool YACSEvalInputPort::hasDefaultValueDefined() const
 {
   return _ptr->edIsManuallyInitialized();
index eeb4ecf990063481581a5dbe27e0ab60b32ff789..f81032ac1b0fe6b49485fed96c952def6da00085 100644 (file)
@@ -98,6 +98,7 @@ public:
   YACSEVALYFX_EXPORT std::string getName() const;
   YACSEVALYFX_EXPORT std::string getTypeOfData() const;
   YACSEVALYFX_EXPORT bool isOKForLock() const;
+  YACSEVALYFX_EXPORT bool isLocked() const;
   //
   YACSEVALYFX_EXPORT bool hasDefaultValueDefined() const;
   YACSEVALYFX_EXPORT YACSEvalAny *getDefaultValueDefined() const;
index aa9df200acc79f76002292a021a69fab318e4355..92d1d419a9e16d054f9c21f6d965a3823c1624d2 100644 (file)
@@ -86,6 +86,7 @@ void YACSEvalVirtualYACSContainer::set(YACSEvalResource *gf, YACS::ENGINE::Conta
   if(_cont)
     _cont->decrRef();
   _cont=cont;
+  _cont->incrRef();
   _propertyMap=listOfPropertiesInYACSContainer();
 }