mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user