Commit d8337ca3c2cc816089cca3a2a93f973d861cfb36
1 parent
a4daec29
compile fix
Showing
1 changed file
with
1 additions
and
1 deletions
openbr/plugins/turk.cpp
| @@ -17,7 +17,7 @@ static Template unmap(const Template &t, const QString& variable, const float ma | @@ -17,7 +17,7 @@ static Template unmap(const Template &t, const QString& variable, const float ma | ||
| 17 | i.next(); | 17 | i.next(); |
| 18 | // Normalize to [minRange,maxRange] | 18 | // Normalize to [minRange,maxRange] |
| 19 | float value = i.value().toFloat(&ok)*(maxRange-minRange)/maxVotes - minRange; | 19 | float value = i.value().toFloat(&ok)*(maxRange-minRange)/maxVotes - minRange; |
| 20 | - if (!ok) qFatal("Failed to expand Turk votes for %s", variable); | 20 | + if (!ok) qFatal("Failed to expand Turk votes for %s", qPrintable(variable)); |
| 21 | if (classify) (value > maxRange-((maxRange-minRange)/2)) ? value = maxRange : value = minRange; | 21 | if (classify) (value > maxRange-((maxRange-minRange)/2)) ? value = maxRange : value = minRange; |
| 22 | else if (consensusOnly && (value != maxRange && value != minRange)) continue; | 22 | else if (consensusOnly && (value != maxRange && value != minRange)) continue; |
| 23 | expandedT.file.set(i.key(),value); | 23 | expandedT.file.set(i.key(),value); |