Xcos MVC: allow column vectors for all properties
[scilab.git] / scilab / modules / scicos / src / cpp / view_scilab / LinkAdapter.cpp
index 31945e7..2f27e83 100644 (file)
@@ -229,7 +229,7 @@ struct thick
         }
 
         types::Double* current = v->getAs<types::Double>();
-        if (current->getRows() != 1 || current->getCols() != 2)
+        if (current->getSize() != 2)
         {
             return false;
         }
@@ -273,7 +273,7 @@ struct ct
         }
 
         types::Double* current = v->getAs<types::Double>();
-        if (current->getRows() != 1 || current->getCols() != 2)
+        if (current->getSize() != 2)
         {
             return false;
         }