Xcos MVC: allow column vectors for all properties
[scilab.git] / scilab / modules / scicos / src / cpp / view_scilab / ParamsAdapter.cpp
index 3f3f969..aaecf0c 100644 (file)
@@ -237,7 +237,8 @@ struct context
         if (v->getType() == types::InternalType::ScilabString)
         {
             types::String* current = v->getAs<types::String>();
-            if (current->getCols() != 0 && current->getCols() != 1)
+            // Only allow vectors and empty matrices
+            if (!current->isVector() && current->getSize() != 0)
             {
                 return false;
             }