Fixed a bug in the dimension widget used in the title block editor.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@1771 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-05-09 02:31:40 +00:00
parent 4b39950397
commit f54e3bb90b

View File

@@ -77,13 +77,13 @@ TitleBlockDimension TitleBlockDimensionWidget::value() const {
@param dim Dimension to be displayed and edited by this dialog
*/
void TitleBlockDimensionWidget::setValue(const TitleBlockDimension &dim) {
spinbox_ -> setValue(dim.value);
if (complete_) {
if (QAbstractButton *button = dimension_type_ -> button(dim.type)) {
button -> setChecked(true);
}
}
updateSpinBoxSuffix();
spinbox_ -> setValue(dim.value);
}
/**