Merge remote-tracking branch 'origin/master' into YaSp
[scilab.git] / scilab / modules / graphics / sci_gateway / c / sci_delete.c
index 1c2fc7e..c42720b 100644 (file)
@@ -175,6 +175,11 @@ int sci_delete(char *fname, void* pvApiCtx)
                             deleteGraphicObject(childrenUID[i]);
                         }
                     }
+                    /*
+                     * Clone a new Axes object using the Axes model which is then
+                     * attached to the 'cleaned' Figure.
+                     */
+                    cloneAxesModel(pFigureUID);
 
                     AssignOutputVariable(pvApiCtx, 1) = 0;
                     ReturnArguments(pvApiCtx);