Clone in a terminal:
Commit f84b72f
Johan Mattsson - 2016-06-20T07:33:36+00:00
f84b72f61bce35f741514a6f118baec6555ed4c2johan.mattsson.m@gmail.com

Remove objects in sublayers

Changed files (2)

Diff

diff --git a/libbirdfont/MoveTool.vala b/libbirdfont/MoveTool.valaindex f6c6bfd..4307a64 100644--- a/libbirdfont/MoveTool.vala+++ b/libbirdfont/MoveTool.vala@@ -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 (); 			} diff --git a/libsvgbird/Layer.vala b/libsvgbird/Layer.valaindex 6686cb7..25549df 100644--- a/libsvgbird/Layer.vala+++ b/libsvgbird/Layer.vala@@ -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 ()); 	} 	

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112