mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 22:13:23 -07:00
parent
10f227da51
commit
2a5ae1557e
2 changed files with 9 additions and 9 deletions
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue