Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 13, 2020
1 parent 1936fa0 commit 7100c9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/core/testqgsvectorlayer.cpp
Expand Up @@ -260,14 +260,14 @@ void TestQgsVectorLayer::setFeatureBlendMode()

mpPointsLayer->setFeatureBlendMode( QPainter::CompositionMode_Screen );
QCOMPARE( spy.count(), 1 );
QCOMPARE( spy.at( 0 ).at( 0 ).toInt(), QPainter::CompositionMode_Screen );
QCOMPARE( spy.at( 0 ).at( 0 ).toInt(), static_cast< int >( QPainter::CompositionMode_Screen ) );
QCOMPARE( mpPointsLayer->featureBlendMode(), QPainter::CompositionMode_Screen );
mpPointsLayer->setFeatureBlendMode( QPainter::CompositionMode_Screen );
QCOMPARE( spy.count(), 1 );

mpPointsLayer->setFeatureBlendMode( QPainter::CompositionMode_Darken );
QCOMPARE( spy.count(), 2 );
QCOMPARE( spy.at( 1 ).at( 0 ).toInt(), QPainter::CompositionMode_Darken );
QCOMPARE( spy.at( 1 ).at( 0 ).toInt(), static_cast< int >( QPainter::CompositionMode_Darken ) );
QCOMPARE( mpPointsLayer->featureBlendMode(), QPainter::CompositionMode_Darken );
}

Expand Down

0 comments on commit 7100c9d

Please sign in to comment.