* bug 16280 fixed: allow users to use mode() inside a macro.
[scilab.git] / scilab / modules / overloading / macros / %r_p.sci
index 22073fb..8ad0cbb 100644 (file)
@@ -64,7 +64,10 @@ function %r_p(h)
                     end
                     txtr=txtr+[part(tlk,1:width(k));emptystr(height(l)-size(tlk,1),1)]
                 end
-                txt=[txt;emptystr(1);txtr]
+                txt=[txt;txtr];
+                if mode() == 2 && l < m
+                    txt=[txt;emptystr(1)];
+                end
             end
             // add matrix delimiter and columns title and display
             nt = size(txt,1)