Partial revert of https://codereview.scilab.org/#/c/15698/. 32/15732/1
Vincent COUVERT [Mon, 22 Dec 2014 16:08:12 +0000 (17:08 +0100)]
auto_ticks property existed before 5.5.0.

Change-Id: I3074ff25f5ae9716ab1088c8fa3c3750651e5e2a

scilab/modules/fileio/macros/%_listvarinfile.sci
scilab/modules/graphics/macros/%h_load.sci

index d352606..1dbc563 100644 (file)
@@ -447,11 +447,8 @@ function totalSize = getSingleHandleInfo(fd, totalSize)
             end
         end
 
-        if is_higher_than([5 4 0 1]) then
-            totalSize = seekBoolMatrix(fd, totalSize); // auto_ticks
-        end
-
         if is_higher_than([3 0 0 0]) then
+            totalSize = seekBoolMatrix(fd, totalSize); // auto_ticks
 
             //x_ticks
             [totalSize, ticksX] = readShort(fd, totalSize); // ticks count
index 97904ab..ec59a7a 100644 (file)
@@ -326,11 +326,8 @@ function [h,immediate_drawing] = load_graphichandle(fd)
         end
 
 
-        if is_higher_than([5 4 0 1]) then
-            auto_ticks=toggle(mget(mget(1,characterFormat,fd),characterFormat,fd)); // auto_ticks
-        end
-
         if is_higher_than([3 0 0 0]) then
+            auto_ticks=toggle(mget(mget(1,characterFormat,fd),characterFormat,fd)); // auto_ticks
 
             ticks=["ticks","locations","labels"]
             sz=mget(1,"sl",fd) // x_ticks.locations