The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Preserve stroke when points are deleted

These changes was commited to the Birdfont repository Thu, 07 May 2015 10:05:51 +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, 07 May 2015 10:05:51 +0000]

Updated Files

libbirdfont/Path.vala
libbirdfont/StrokeTool.vala
--- a/libbirdfont/Path.vala +++ b/libbirdfont/Path.vala @@ -1787,6 +1787,9 @@ PathList path_list = new PathList (); int i; int index = 0; + + remaining_points.stroke = stroke; + current_path.stroke = stroke; if (!has_deleted_point ()) { return path_list;
--- a/libbirdfont/StrokeTool.vala +++ b/libbirdfont/StrokeTool.vala @@ -1898,7 +1898,7 @@ corner1 = new EditPoint (); corner1_inside = new EditPoint (); - if (path.is_open ()) { + if (path.is_open () || fast) { p1 = path.points.get (0); p2 = path.points.get (1 % path.points.size);