SimpleCalibrationDialog: width and height are now mandatory to save

This commit is contained in:
matlabbe
2017-03-31 15:07:24 -04:00
parent def90355a9
commit 900de0a5c9

View File

@@ -117,6 +117,8 @@ void CreateSimpleCalibrationDialog::updateSaveStatus()
if(ui_->comboBox_advanced->currentIndex() == 0 && if(ui_->comboBox_advanced->currentIndex() == 0 &&
ui_->doubleSpinBox_fx->value() > 0.0 && ui_->doubleSpinBox_fx->value() > 0.0 &&
ui_->doubleSpinBox_fy->value() > 0.0 && ui_->doubleSpinBox_fy->value() > 0.0 &&
ui_->spinBox_width->value() > 0 &&
ui_->spinBox_height->value() > 0 &&
(!ui_->checkBox_stereo->isChecked() || ui_->doubleSpinBox_baseline->value() != 0.0)) (!ui_->checkBox_stereo->isChecked() || ui_->doubleSpinBox_baseline->value() != 0.0))
{ {
// basic // basic