Fix same-on-both sides checks

This commit is contained in:
Nyall Dawson 2024-11-20 15:49:03 +10:00
parent ba07d876f8
commit 93bce2ed76
No known key found for this signature in database
GPG Key ID: 4C61673F0BF197FC
2 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ bool QgsRasterAttributeTable::insertField( int position, const Field &field, QSt
{ {
mType = Qgis::RasterAttributeTableType::Thematic; mType = Qgis::RasterAttributeTableType::Thematic;
} }
else if ( field.usage == Qgis::RasterAttributeTableFieldUsage::Max || field.usage == Qgis::RasterAttributeTableFieldUsage::Max ) else if ( field.usage == Qgis::RasterAttributeTableFieldUsage::Min || field.usage == Qgis::RasterAttributeTableFieldUsage::Max )
{ {
mType = Qgis::RasterAttributeTableType::Athematic; mType = Qgis::RasterAttributeTableType::Athematic;
} }

View File

@ -191,7 +191,7 @@ QgsNewVectorTableDialog::QgsNewVectorTableDialog( QgsAbstractDatabaseProviderCon
mHasZChk->setEnabled( false ); mHasZChk->setEnabled( false );
mHasZChk->setChecked( false ); mHasZChk->setChecked( false );
} }
if ( ! hasM && ! hasM ) if ( ! hasM && ! hasZ )
{ {
mHasZChk->setVisible( false ); mHasZChk->setVisible( false );
mHasMChk->setVisible( false ); mHasMChk->setVisible( false );