The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

New bezier drawing tool

Changes made to libbirdfont/Glyph.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/Glyph.vala +++ libbirdfont/Glyph.vala @@ -1559,7 +1559,7 @@ if (!(MainWindow.get_toolbox ().get_current_tool () is PenTool) && !(MainWindow.get_toolbox ().get_current_tool () is PointTool) && !(MainWindow.get_toolbox ().get_current_tool () is TrackTool) - && !(MainWindow.get_toolbox ().get_current_tool () is ForesightTool)) { + && !(MainWindow.get_toolbox ().get_current_tool () is BezierTool)) { cr.save (); cr.new_path (); foreach (Path p in active_paths) { @@ -2277,8 +2277,18 @@ }); TabContent.show_text_input (listener); + } + + public PathList get_paths () { + PathList pl = new PathList (); + + foreach (Path p in path_list) { + pl.add (p); + } + + return pl; } } }