/** * Clears all layers, blocks and entities of this graphic. * A default layer (0) is created. */ void RS_Graphic::newDoc() { RS_DEBUG->print("RS_Graphic::newDoc"); clear(); clearLayers(); clearBlocks(); addLayer(new RS_Layer("0")); //addLayer(new RS_Layer("ByBlock")); setModified(false); }
Bundle::~Bundle() { clearBlocks(); }