We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4bb5ff commit be7c132Copy full SHA for be7c132
configparams.cpp
@@ -195,6 +195,8 @@ double ConfigParams::getParamDouble(const QString &name)
195
196
if (p.type == CFG_T_DOUBLE) {
197
retVal = p.valDouble;
198
+ } else if (p.type == CFG_T_INT) {
199
+ retVal = double(p.valInt);
200
} else {
201
qWarning() << name << "wrong type";
202
}
@@ -214,6 +216,8 @@ int ConfigParams::getParamInt(const QString &name)
214
216
215
217
if (p.type == CFG_T_INT || p.type == CFG_T_BITFIELD) {
218
retVal = p.valInt;
219
+ } else if (p.type == CFG_T_DOUBLE) {
220
+ retVal = int(p.valDouble);
221
222
223
0 commit comments