The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – 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
[Wed, 16 Aug 2017 17:24:22 +0000]

Updated Files

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);