The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix layer transform

These changes was commited to the Birdfont repository Mon, 11 Jul 2016 12:37:02 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 11 Jul 2016 12:37:02 +0000 (14:37 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 11 Jul 2016 12:37:02 +0000 (14:37 +0200)
commit 042096d6b75937d09f7fa8026031ce7b40eca6f5
tree 1331d4a2d39cff6e4677969ad95fda65c7410893
parent e7bf6ed56780cf45757da82bce241e7e260965cd
Fix layer transform

libsvgbird/Layer.vala
libsvgbird/SvgDrawing.vala
libsvgbird/SvgFile.vala
--- a/libsvgbird/Layer.vala +++ b/libsvgbird/Layer.vala @@ -86,7 +86,6 @@ private void draw_layer (Context cr, bool paint) { cr.save (); - apply_transform (cr); if (clip_path != null) { ClipPath clipping = (!) clip_path; @@ -103,6 +102,7 @@ if (object is Layer) { Layer sublayer = (Layer) object; + sublayer.apply_transform (cr); if (paint) { sublayer.draw (cr);
--- a/libsvgbird/SvgDrawing.vala +++ b/libsvgbird/SvgDrawing.vala @@ -55,6 +55,7 @@ public override void apply_transform (Context cr) { apply_view_box (cr); + root_layer.apply_transform (cr); base.apply_transform (cr); }
--- a/libsvgbird/SvgFile.vala +++ b/libsvgbird/SvgFile.vala @@ -174,7 +174,7 @@ if (name == "g") { Layer sublayer = new Layer (); - parse_layer (layer, parent_style, t); + parse_layer (sublayer, parent_style, t); layer.objects.add (sublayer); }