Commit 8c08c94
Fix Beziér tool
Changed files (2)
Diff
@@ -67,7 +67,7 @@ public class FileTools : ToolCollection { 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 @@ public class FileTools : ToolCollection { 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); @@ -177,6 +177,7 @@ public class ForesightTool : Tool { state = NONE; } else if (state == MOVE_POINT) {+ } else if (state == NONE) { } else { warning (@"Unknown state $state."); }@@ -196,10 +197,6 @@ public class ForesightTool : Tool { 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) { return_if_fail (PenTool.active_path.points.size >= previous_point + 1);