From: Calixte DENIZET Date: Tue, 18 Mar 2014 14:23:14 +0000 (+0100) Subject: Graphics: fix error with f.children(1).x_ticks.labels([3 2])='' X-Git-Tag: 5.5.0~332 X-Git-Url: http://gitweb.scilab.org/?p=scilab.git;a=commitdiff_plain;h=b39794418b6a5777f851cc661461407bceaf3dab Graphics: fix error with f.children(1).x_ticks.labels([3 2])='' Change-Id: I6d5f315b1cc53068ac6be4cd55dbdf10b17bb7f2 --- 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