Commit 03e7cb0
Fix kerning class clipping in toolbox
Changed files (2)
Diff
@@ -69,7 +69,7 @@ public class Expander : GLib.Object { } public double get_content_height () {- return content_height; + return content_height; } /** Returns true if tools can be used with the current canvas after@@ -192,7 +192,9 @@ public class Expander : GLib.Object { if (previous is ZoomBar) { content_height += 7 * scale;- }+ } else if (previous is KerningRange) {+ content_height += 10 * scale;+ } previous = t; first_row = false;@@ -201,7 +203,7 @@ public class Expander : GLib.Object { content_height += 5 * scale; }- + if (unlikely (content_height < 0)) { warning (@"content_height < 0"); }@@ -238,13 +238,14 @@ public class KerningTools : ToolCollection { warning ("Tool is not kerning range"); return; }- + k = (KerningRange) t; if (k.glyph_range.get_all_ranges () == kerning_class.glyph_range.get_all_ranges ()) { return; } }- ++ kerning_class.h += 50; classes.add_tool (kerning_class); }