The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Fix Beziér tool

These changes was commited to the Birdfont repository Fri, 24 Apr 2015 11:08:03 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Fri, 24 Apr 2015 11:08:03 +0000]

Updated Files

libbirdfont/FileTools.vala
libbirdfont/ForesightTool.vala
--- a/libbirdfont/FileTools.vala +++ b/libbirdfont/FileTools.vala @@ -67,7 +67,7 @@ TabBar tb; LabelTool s = (LabelTool) self; string theme_file = s.data; - + Preferences.set ("theme", theme_file); Theme.load_theme (theme_file); @@ -78,7 +78,9 @@ tb.redraw (0, 0, tb.width, tb.height); }); - themes.add_tool (theme_label); + if (!theme.has_prefix ("generated_")) { + themes.add_tool (theme_label); + } } expanders.add (font_name);
--- a/libbirdfont/ForesightTool.vala +++ b/libbirdfont/ForesightTool.vala @@ -177,6 +177,7 @@ state = NONE; } else if (state == MOVE_POINT) { + } else if (state == NONE) { } else { warning (@"Unknown state $state."); } @@ -195,10 +196,6 @@ PenTool.active_path = current_path; PenTool.active_path.hide_end_handle = (state == MOVE_POINT); - - if (state == NONE) { - return; - } if (state == MOVE_HANDLES || state == MOVE_LAST_HANDLE) { if (previous_point > 0) {