The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix SVG import

These changes was commited to the Birdfont repository Wed, 16 Aug 2017 17:24:22 +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>
Wed, 16 Aug 2017 17:24:22 +0000 (19:24 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Wed, 16 Aug 2017 17:24:22 +0000 (19:24 +0200)
commit b57a8dcac02daa09429e9a934470abcbae372498
tree 84c7bf0dad6b864847806c4b837ce6f5a0295188
parent a9b7124068761ae7e8b0acf3e8288a385f2d282d
Fix SVG import

libbirdfont/SvgParser.vala
--- a/libbirdfont/SvgParser.vala +++ b/libbirdfont/SvgParser.vala @@ -1918,7 +1918,7 @@ ep.set_point_type (PointType.CUBIC); // TODO: quadratic ep.get_right_handle ().set_point_type (PointType.LINE_CUBIC); - if (b[i -1].type == 'L' || first_point) { + if (first_point || b[i -1].type == 'L') { // ep.get_left_handle ().set_point_type (PointType.LINE_CUBIC); } else { ep.get_left_handle ().set_point_type (PointType.CUBIC);