fixed reading and displaying of floating-point values in dynamic profile rules

This commit is contained in:
Alberto Griggio
2017-03-04 13:48:19 +01:00
parent b3f75398c5
commit 0720659627
2 changed files with 11 additions and 11 deletions

View File

@@ -104,8 +104,8 @@ void get_double_range(DynamicProfileEntry::Range<double> &dest,
const Glib::ustring &key)
{
try {
int min = kf.get_double(group, key + "_min");
int max = kf.get_double(group, key + "_max");
double min = kf.get_double(group, key + "_min");
double max = kf.get_double(group, key + "_max");
if (min <= max) {
dest.min = min;
dest.max = max;