src/dialogs/subfilereferenceeditor.cpp

changeset 1387
6393b6020c62
parent 1386
c59dac18b06b
child 1389
3fb8ad4d27b1
equal deleted inserted replaced
1386:c59dac18b06b 1387:6393b6020c62
183 183
184 if (not qFuzzyCompare(newScaling, 0.0)) 184 if (not qFuzzyCompare(newScaling, 0.0))
185 { 185 {
186 for (int row : {0, 1, 2}) 186 for (int row : {0, 1, 2})
187 { 187 {
188 double cellValue = abs(this->matrixCell(row, column)->value()); 188 double cellValue = this->matrixCell(row, column)->value();
189 cellValue *= newScaling / oldScaling; 189 cellValue *= newScaling / oldScaling;
190 QDoubleSpinBox* cellWidget = this->matrixCell(row, column); 190 QDoubleSpinBox* cellWidget = this->matrixCell(row, column);
191 cellWidget->blockSignals(true); 191 cellWidget->blockSignals(true);
192 cellWidget->setValue(cellValue); 192 cellWidget->setValue(cellValue);
193 cellWidget->blockSignals(false); 193 cellWidget->blockSignals(false);

mercurial