mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-09 00:08:52 -04:00
Fix same-on-both sides checks
This commit is contained in:
parent
ba07d876f8
commit
93bce2ed76
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user