Xcos MVC: fix the adaptor-local parameters getters
[scilab.git] / scilab / modules / scicos / src / cpp / view_scilab / BlockAdapter.cpp
index 48f5905..2c5ba90 100644 (file)
@@ -160,7 +160,7 @@ std::wstring BlockAdapter::getShortTypeStr()
 
 types::InternalType* BlockAdapter::getDocContent() const
 {
-    return doc_content;
+    return doc_content->clone();
 }
 
 void BlockAdapter::setDocContent(types::InternalType* v)