Fix clf after https://codereview.scilab.org/#/c/13958/ (info_message must be cleared... 88/13988/2
Vincent COUVERT [Wed, 12 Mar 2014 08:45:40 +0000 (09:45 +0100)]
To test: test_run graphics bug_7411

Change-Id: I970a66ad03583d92d8c159644fcd1d5f48b71827

scilab/modules/graphics/macros/clf.sci

index 906369c..d0d8d3b 100644 (file)
@@ -75,6 +75,8 @@ function clf(varargin)
         end
     end
 
+    curFig.info_message = "";
+
     // reset figures to default values if needed
     if (job == "reset") then
         defaultFig = gdf();
@@ -117,8 +119,6 @@ function clf(varargin)
 
             // drawnow
             curFig.immediate_drawing = immediateMode;
-
-            curFig.info_message = "";
         end
     end