Converters fix for release 1.3 (#204)

* Converters fix for release 1.3
This commit is contained in:
MXI 2020-05-11 00:03:53 +03:00 committed by GitHub
commit 2a5ae1557e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View file

@ -35,7 +35,7 @@ namespace Greenshot.Drawing.Fields.Binding {
} }
protected override float convert(decimal o) { protected override float convert(decimal o) {
return Convert.ToInt16(o); return Convert.ToSingle(o);
} }
public static DecimalFloatConverter GetInstance() 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 * Copyright (C) 2007-2020 Thomas Braun, Jens Klingen, Robin Krom
* *
@ -35,7 +35,7 @@ namespace Greenshot.Drawing.Fields.Binding {
} }
protected override int convert(decimal o) { protected override int convert(decimal o) {
return Convert.ToInt16(o); return Convert.ToInt32(o);
} }
public static DecimalIntConverter GetInstance() public static DecimalIntConverter GetInstance()