Skip to content

Commit

Permalink
Revert changes in testqgslayoutmap.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrik Sylve committed Jan 31, 2025
1 parent 09aabff commit c28e7b7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/src/core/testqgslayoutmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1962,8 +1962,6 @@ void TestQgsLayoutMap::testLabelResults()
settings.placementSettings().setOverlapHandling( Qgis::LabelOverlapHandling::AllowOverlapIfRequired );

QgsVectorLayer *vl2 = new QgsVectorLayer( QStringLiteral( "Point?crs=epsg:4326&field=id:integer" ), QStringLiteral( "vl" ), QStringLiteral( "memory" ) );
// Set ID for consistent labeling result
vl2->setId( QStringLiteral( "layer1" ) );

QgsFeature f;
f.setAttributes( QgsAttributes() << 1 );
Expand Down Expand Up @@ -2013,8 +2011,6 @@ void TestQgsLayoutMap::testLabelResults()

// with unplaced labels
QgsVectorLayer *vl3( vl2->clone() );
// Set ID for consistent labeling result
vl3->setId( QStringLiteral( "layer2" ) );
p.addMapLayer( vl3 );
// with unplaced labels -- all vl3 labels will be unplaced, because they are conflicting with those in vl2
settings.priority = 1;
Expand Down

0 comments on commit c28e7b7

Please sign in to comment.