Commit db8b7dc5 authored by Thomas Zander's avatar Thomas Zander

Fixes: setting the unit on the spinbox causes it to emit one incorrect value

svn path=/trunk/koffice/; revision=945816
parent 414a564f
......@@ -159,8 +159,8 @@ void KoUnitDoubleSpinBox::setUnit( KoUnit unit )
QDoubleSpinBox::setMinimum( unit.toUserValue( d->lowerInPoints ) );
QDoubleSpinBox::setMaximum( unit.toUserValue( d->upperInPoints ) );
QDoubleSpinBox::setSingleStep( unit.toUserValue( d->stepInPoints ) );
QDoubleSpinBox::setValue( KoUnit::ptToUnit( oldvalue, unit ) );
d->unit = unit;
QDoubleSpinBox::setValue( KoUnit::ptToUnit( oldvalue, unit ) );
setSuffix( KoUnit::unitName( unit ).prepend( ' ' ) );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment