From 3660d77e8da0fc9bd518041e3ae05db61289b8cd Mon Sep 17 00:00:00 2001 From: MXI Date: Sat, 18 Apr 2020 00:36:50 +0300 Subject: [PATCH] Font size field type fix Font size value is used as a float. Wrong type here causes exceptions. --- src/Greenshot.Addon.LegacyEditor/Drawing/Fields/FieldTypes.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Greenshot.Addon.LegacyEditor/Drawing/Fields/FieldTypes.cs b/src/Greenshot.Addon.LegacyEditor/Drawing/Fields/FieldTypes.cs index 8eb35d87e..50c31af54 100644 --- a/src/Greenshot.Addon.LegacyEditor/Drawing/Fields/FieldTypes.cs +++ b/src/Greenshot.Addon.LegacyEditor/Drawing/Fields/FieldTypes.cs @@ -59,7 +59,7 @@ namespace Greenshot.Addon.LegacyEditor.Drawing.Fields /// /// This field specifies the font size /// - public static readonly IFieldType FONT_SIZE = new FieldType("FONT_SIZE"); + public static readonly IFieldType FONT_SIZE = new FieldType("FONT_SIZE"); /// /// This field specifies the horizontal text alignment /// @@ -113,4 +113,4 @@ namespace Greenshot.Addon.LegacyEditor.Drawing.Fields ARROWHEADS, BLUR_RADIUS, BRIGHTNESS, FILL_COLOR, FONT_BOLD, FONT_FAMILY, FONT_ITALIC, FONT_SIZE, TEXT_HORIZONTAL_ALIGNMENT, TEXT_VERTICAL_ALIGNMENT, HIGHLIGHT_COLOR, LINE_COLOR, LINE_THICKNESS, MAGNIFICATION_FACTOR, PIXEL_SIZE, SHADOW, PREPARED_FILTER_OBFUSCATE, PREPARED_FILTER_HIGHLIGHT, FLAGS }; } -} \ No newline at end of file +}