SVN commit 785378 by aacid: Backport r785377 **************** chop the suffix before doing the int conversion M +3 -1 knuminput.cpp --- branches/KDE/4.0/kdelibs/kdeui/widgets/knuminput.cpp #785377:785378 @@ -275,7 +275,9 @@ int KIntSpinBox::valueFromText(const QString &text) const { bool ok; - return text.toInt(&ok, d->val_base); + QString theText = text; + if (theText.endsWith(suffix())) theText.chop(suffix().length()); + return theText.toInt(&ok, d->val_base); } void KIntSpinBox::setEditFocus(bool mark)