mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 14:03:23 -07:00
parent
10f227da51
commit
2a5ae1557e
2 changed files with 9 additions and 9 deletions
|
@ -35,13 +35,13 @@ namespace Greenshot.Drawing.Fields.Binding {
|
|||
}
|
||||
|
||||
protected override float convert(decimal o) {
|
||||
return Convert.ToInt16(o);
|
||||
return Convert.ToSingle(o);
|
||||
}
|
||||
|
||||
public static DecimalFloatConverter GetInstance()
|
||||
{
|
||||
return _uniqueInstance ??= new DecimalFloatConverter();
|
||||
}
|
||||
{
|
||||
return _uniqueInstance ??= new DecimalFloatConverter();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* Greenshot - a free and open source screenshot tool
|
||||
* Copyright (C) 2007-2020 Thomas Braun, Jens Klingen, Robin Krom
|
||||
*
|
||||
|
@ -35,13 +35,13 @@ namespace Greenshot.Drawing.Fields.Binding {
|
|||
}
|
||||
|
||||
protected override int convert(decimal o) {
|
||||
return Convert.ToInt16(o);
|
||||
return Convert.ToInt32(o);
|
||||
}
|
||||
|
||||
public static DecimalIntConverter GetInstance()
|
||||
{
|
||||
return _uniqueInstance ??= new DecimalIntConverter();
|
||||
}
|
||||
{
|
||||
return _uniqueInstance ??= new DecimalIntConverter();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue