Fix for converters

This commit is contained in:
Killy 2020-05-03 21:19:19 +03:00
commit f18bab2815
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
// Greenshot - a free and open source screenshot tool
// Greenshot - a free and open source screenshot tool
// Copyright (C) 2007-2020 Thomas Braun, Jens Klingen, Robin Krom
//
// For more information see: http://getgreenshot.org/
@ -37,7 +37,7 @@ namespace Greenshot.Addon.LegacyEditor.Drawing.Fields.Binding
protected override float Convert(decimal o)
{
return System.Convert.ToInt16(o);
return System.Convert.ToSingle(o);
}
public static DecimalFloatConverter GetInstance()

View file

@ -1,4 +1,4 @@
// Greenshot - a free and open source screenshot tool
// Greenshot - a free and open source screenshot tool
// Copyright (C) 2007-2020 Thomas Braun, Jens Klingen, Robin Krom
//
// For more information see: http://getgreenshot.org/
@ -37,7 +37,7 @@ namespace Greenshot.Addon.LegacyEditor.Drawing.Fields.Binding
protected override int Convert(decimal o)
{
return System.Convert.ToInt16(o);
return System.Convert.ToInt32(o);
}
public static DecimalIntConverter GetInstance()