add frame_borders as hidden children to allow recursive deletion
[scilab.git] / scilab / modules / gui / src / java / org / scilab / modules / gui / bridge / window / SwingScilabStaticWindow.java
index c4be084..5c937da 100644 (file)
@@ -40,7 +40,8 @@ public class SwingScilabStaticWindow extends SwingScilabWindow {
                                           + ";if exists(\"%oldgcbo\") then gcbo = %oldgcbo; else clear gcbo; end;";
                     InterpreterManagement.putCommandInScilabQueue(closeCommand);
                 } else {
-                    GraphicController.getController().deleteObject(panel.getId());
+                    //GraphicController.getController().deleteObject(panel.getId());
+                    GraphicController.getController().removeRelationShipAndDelete(panel.getId());
                 }
             }
         });