Commit f84b72f
Remove objects in sublayers
Changed files (2)
Diff
@@ -96,12 +96,7 @@ public class MoveTool : Tool { } foreach (SvgBird.Object p in g.active_paths) {- if (p is PathObject) {- LayerUtils.remove_path (g.layers, ((PathObject) p).get_path ());- } else {- g.layers.remove (p);- }- + g.layers.remove (p); g.update_view (); } @@ -115,6 +115,14 @@ public class Layer : Object { public void remove (Object o) { objects.remove (o);+ + foreach (Object object in objects) {+ if (object is Layer) {+ Layer sublayer = (Layer) object;+ sublayer.remove (o);;+ }+ }+ update_boundaries (Matrix.identity ()); }