summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/HSpinBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/HSpinBox.cpp')
-rw-r--r--src/gui/widgets/HSpinBox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/HSpinBox.cpp b/src/gui/widgets/HSpinBox.cpp
index e49cf1b..85f4c69 100644
--- a/src/gui/widgets/HSpinBox.cpp
+++ b/src/gui/widgets/HSpinBox.cpp
@@ -42,7 +42,7 @@ TQString HSpinBox::mapValueToText(int j)
int HSpinBox::mapTextToValue( bool* ok )
{
*ok = true;
- float f = atof(text());
+ float f = atof(text().ascii());
return int(f * m_scaleFactor);
}