The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix view matrix in layers

These changes was commited to the Birdfont repository Mon, 11 Jul 2016 12:52:41 +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:52:41 +0000 (14:52 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 11 Jul 2016 12:52:41 +0000 (14:52 +0200)
commit 11767cb97ef0f9ba3cb8da58712c7dbd22a616a0
tree 4ef71b1ba40387b06ebb6b419654cc8303b1de03
parent 042096d6b75937d09f7fa8026031ce7b40eca6f5
Fix view matrix in layers

libsvgbird/Layer.vala
--- a/libsvgbird/Layer.vala +++ b/libsvgbird/Layer.vala @@ -44,8 +44,7 @@ right = CANVAS_MIN; cr.save (); - apply_transform (cr); - + foreach (Object object in objects) { bool has_size = false; @@ -53,6 +52,7 @@ if (object is Layer) { Layer sublayer = (Layer) object; + sublayer.apply_transform (cr); object.view_matrix = cr.get_matrix (); has_size = sublayer.update_boundaries (cr); } else {