summaryrefslogtreecommitdiffstats
path: root/scilab/modules/scicos/src/cpp/Controller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scilab/modules/scicos/src/cpp/Controller.cpp')
-rw-r--r--scilab/modules/scicos/src/cpp/Controller.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scilab/modules/scicos/src/cpp/Controller.cpp b/scilab/modules/scicos/src/cpp/Controller.cpp
index 951f44a..4b97df0 100644
--- a/scilab/modules/scicos/src/cpp/Controller.cpp
+++ b/scilab/modules/scicos/src/cpp/Controller.cpp
@@ -496,7 +496,7 @@ void Controller::deepCloneVector(std::map<model::BaseObject*, model::BaseObject*
496 } 496 }
497 else 497 else
498 { 498 {
499 cloned.push_back(getObject(id)); 499 cloned.push_back(nullptr);
500 } 500 }
501 } 501 }
502 } 502 }
@@ -504,7 +504,7 @@ void Controller::deepCloneVector(std::map<model::BaseObject*, model::BaseObject*
504 // update the ScicosID related properties after cloning all the objects 504 // update the ScicosID related properties after cloning all the objects
505 if (p == CHILDREN) 505 if (p == CHILDREN)
506 { 506 {
507 for (auto const& it : mapped) 507 for (auto const & it : mapped)
508 { 508 {
509 model::BaseObject* initial = it.first; 509 model::BaseObject* initial = it.first;
510 model::BaseObject* cloned = it.second; 510 model::BaseObject* cloned = it.second;