Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aedbb86

Browse files
vcloarecgithub-actions[bot]
authored andcommittedApr 25, 2023
fix deactivate mesh layer contours
1 parent 245703f commit aedbb86

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎src/core/mesh/qgsmeshlayer.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,15 +1430,17 @@ QgsAbstractProfileGenerator *QgsMeshLayer::createProfileGenerator( const QgsProf
14301430
void QgsMeshLayer::checkSymbologyConsistency()
14311431
{
14321432
const QList<int> groupIndexes = mDatasetGroupStore->datasetGroupIndexes();
1433-
if ( !groupIndexes.contains( mRendererSettings.activeScalarDatasetGroup() ) )
1433+
if ( !groupIndexes.contains( mRendererSettings.activeScalarDatasetGroup() ) &&
1434+
mRendererSettings.activeScalarDatasetGroup() != -1 )
14341435
{
14351436
if ( !groupIndexes.empty() )
14361437
mRendererSettings.setActiveScalarDatasetGroup( groupIndexes.first() );
14371438
else
14381439
mRendererSettings.setActiveScalarDatasetGroup( -1 );
14391440
}
14401441

1441-
if ( !groupIndexes.contains( mRendererSettings.activeVectorDatasetGroup() ) )
1442+
if ( !groupIndexes.contains( mRendererSettings.activeVectorDatasetGroup() ) &&
1443+
mRendererSettings.activeVectorDatasetGroup() != -1 )
14421444
{
14431445
mRendererSettings.setActiveVectorDatasetGroup( -1 );
14441446
}

0 commit comments

Comments
 (0)
Please sign in to comment.