The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Merge branch '2.10'

These changes was commited to the Birdfont repository Thu, 18 Jun 2015 21:42:28 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Thu, 18 Jun 2015 21:42:28 +0000]

Updated Files

libbirdfont/Glyph.vala
libbirdfont/Layer.vala
--- a/libbirdfont/Glyph.vala +++ b/libbirdfont/Glyph.vala @@ -184,6 +184,8 @@ PathList stroke; pl = new PathList (); + + print (@"$(get_name ()) get_visible_paths (): $(get_visible_paths ().size)\n"); foreach (Path p in get_visible_paths ()) { if (p.stroke > 0) { stroke = p.get_stroke ();
--- a/libbirdfont/Layer.vala +++ b/libbirdfont/Layer.vala @@ -44,7 +44,9 @@ public PathList get_visible_paths () { PathList p = new PathList (); - p.append (paths); + if (visible) { + p.append (paths); + } foreach (Layer sublayer in subgroups) { if (sublayer.visible) { @@ -82,6 +84,8 @@ layer.name = name; layer.paths = paths.copy (); + layer.visible = visible; + foreach (Layer l in subgroups) { layer.subgroups.add (l.copy ()); }