From b39794418b6a5777f851cc661461407bceaf3dab Mon Sep 17 00:00:00 2001 From: Calixte DENIZET Date: Tue, 18 Mar 2014 15:23:14 +0100 Subject: [PATCH] Graphics: fix error with f.children(1).x_ticks.labels([3 2])='' Change-Id: I6d5f315b1cc53068ac6be4cd55dbdf10b17bb7f2 --- scilab/modules/overloading/macros/generic_i_h.sci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scilab/modules/overloading/macros/generic_i_h.sci b/scilab/modules/overloading/macros/generic_i_h.sci index dbf0c45..0ac648c 100644 --- a/scilab/modules/overloading/macros/generic_i_h.sci +++ b/scilab/modules/overloading/macros/generic_i_h.sci @@ -48,7 +48,7 @@ function h=generic_i_h(i,v,h) property(index(:))=v else if or(size(index)<>[-1 -1]) then - if (index(1)=="locations" | index(1)=="labels") & size(property(index),"*") ~= size(v,"*") then + if (index(1)=="locations" | index(1)=="labels") & size(v,"*") ~= 1 & size(property(index),"*") ~= size(v,"*") then error(msprintf(_("%s: Incompatible sizes for properties ''%s'' and ''%s'': Same sizes expected.\n"), "generic_i_h", string(i($-2))+".locations", string(i($-2))+".labels")); end property(index)=v -- 1.7.9.5