Skip to content

Commit 2e107f2

Browse files
committedDec 28, 2013
[tests] Fix failing gradient tests
1 parent 089fbe9 commit 2e107f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎tests/src/core/testqgsgradients.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ void TestQgsGradients::initTestCase()
9494
QFileInfo myPolyFileInfo( myPolysFileName );
9595
mpPolysLayer = new QgsVectorLayer( myPolyFileInfo.filePath(),
9696
myPolyFileInfo.completeBaseName(), "ogr" );
97+
mpPolysLayer->setSimplifyDrawingHints( QgsVectorLayer::NoSimplification );
9798
// Register the layer with the registry
9899
QgsMapLayerRegistry::instance()->addMapLayers(
99100
QList<QgsMapLayer *>() << mpPolysLayer );
@@ -244,6 +245,7 @@ void TestQgsGradients::gradientSymbolFromQml()
244245
{
245246
mReport += "<h2>Gradient symbol from QML test</h2>\n";
246247
QVERIFY( setQml( "gradient" ) );
248+
mpPolysLayer->setSimplifyDrawingHints( QgsVectorLayer::NoSimplification );
247249
QVERIFY( imageCheck( "gradient_from_qml" ) );
248250
}
249251

0 commit comments

Comments
 (0)
Please sign in to comment.