From 4e035e686bc33c64b183fe21648f2e1dac1a6d9d Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Thu, 10 Feb 2022 14:48:47 +1000 Subject: [PATCH] Create world file only option is also compatible with Helmert transforms --- src/app/georeferencer/qgstransformsettingsdialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/georeferencer/qgstransformsettingsdialog.cpp b/src/app/georeferencer/qgstransformsettingsdialog.cpp index 9ae8c263ae71..07f733cd3ca4 100644 --- a/src/app/georeferencer/qgstransformsettingsdialog.cpp +++ b/src/app/georeferencer/qgstransformsettingsdialog.cpp @@ -210,14 +210,15 @@ void QgsTransformSettingsDialog::accept() void QgsTransformSettingsDialog::cmbTransformType_currentIndexChanged( const QString & ) { if ( cmbTransformType->currentIndex() != -1 - && static_cast< QgsGcpTransformerInterface::TransformMethod >( cmbTransformType->currentData().toInt() ) == QgsGcpTransformerInterface::TransformMethod::Linear ) + && ( static_cast< QgsGcpTransformerInterface::TransformMethod >( cmbTransformType->currentData().toInt() ) == QgsGcpTransformerInterface::TransformMethod::Linear + || static_cast< QgsGcpTransformerInterface::TransformMethod >( cmbTransformType->currentData().toInt() ) == QgsGcpTransformerInterface::TransformMethod::Helmert ) ) { mWorldFileCheckBox->setEnabled( true ); } else { + // world file only option is only compatible with helmert/linear transforms mWorldFileCheckBox->setEnabled( false ); - // reset world file checkbox when transformation differ from Linear mWorldFileCheckBox->setChecked( false ); } }