Graphics: fix error with f.children(1).x_ticks.labels([3 2])='' 63/14063/2
Calixte DENIZET [Tue, 18 Mar 2014 14:23:14 +0000 (15:23 +0100)]
Change-Id: I6d5f315b1cc53068ac6be4cd55dbdf10b17bb7f2

scilab/modules/overloading/macros/generic_i_h.sci

index dbf0c45..0ac648c 100644 (file)
@@ -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