fix: deletion does not return correct empty matrix 20/21020/1
Antoine ELIAS [Tue, 25 Jun 2019 11:40:38 +0000 (13:40 +0200)]
Change-Id: I1524e570e6dd2cf0365be8ebfce948d50c6f88a5

scilab/modules/ast/src/cpp/types/arrayof.cpp

index d3c7d99..32727e4 100644 (file)
@@ -930,10 +930,8 @@ GenericType* ArrayOf<T>::remove(typed_list* _pArgs)
     if (iToDelIndex < 0)
     {
         // overall removal x(:,...,:) = []
-        int piDims[2] = {0,0};
-        pOut = createEmpty(2, piDims, false);
         cleanIndexesArguments(_pArgs, &pArg);
-        return pOut;
+        return createEmpty();
     }
 
     if (toDelIndexVect.size() == 0)