Skip to content

Commit

Permalink
Create world file only option is also compatible with Helmert transforms
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 14, 2022
1 parent 4877003 commit 4e035e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/georeferencer/qgstransformsettingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}
Expand Down

0 comments on commit 4e035e6

Please sign in to comment.