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); |