fix concatenation of matrix with [] and list()
[scilab.git] / scilab / modules / ast / src / cpp / ast / run_MatrixExp.hpp
index bd82b96..108bfe2 100644 (file)
@@ -141,7 +141,13 @@ void RunVisitorT<T>::visitprivate(const MatrixExp &e)
                         pGT->killMe();
                         continue;
                     }
-                    
+
+                    if (pGT->isDouble() && pGT->getAs<types::Double>()->isEmpty())
+                    {
+                        pGT->killMe();
+                        continue;
+                    }
+
                     poRow = pGT;
                     continue;
                 }