File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,11 @@ void TestQgsBlendModes::initTestCase()
85
85
QFileInfo myPolyFileInfo ( myPolysFileName );
86
86
mpPolysLayer = new QgsVectorLayer ( myPolyFileInfo.filePath (),
87
87
myPolyFileInfo.completeBaseName (), " ogr" );
88
- mpPolysLayer->setSimplifyDrawingHints ( QgsVectorLayer::NoSimplification );
88
+
89
+ QgsVectorSimplifyMethod simplifyMethod;
90
+ simplifyMethod.setSimplifyHints ( QgsVectorLayer::NoSimplification );
91
+
92
+ mpPolysLayer->setSimplifyMethod ( simplifyMethod );
89
93
QgsMapLayerRegistry::instance ()->addMapLayers (
90
94
QList<QgsMapLayer *>() << mpPolysLayer );
91
95
@@ -94,7 +98,7 @@ void TestQgsBlendModes::initTestCase()
94
98
QFileInfo myLineFileInfo ( myLinesFileName );
95
99
mpLinesLayer = new QgsVectorLayer ( myLineFileInfo.filePath (),
96
100
myLineFileInfo.completeBaseName (), " ogr" );
97
- mpLinesLayer->setSimplifyDrawingHints ( QgsVectorLayer::NoSimplification );
101
+ mpLinesLayer->setSimplifyMethod ( simplifyMethod );
98
102
QgsMapLayerRegistry::instance ()->addMapLayers (
99
103
QList<QgsMapLayer *>() << mpLinesLayer );
100
104
You can’t perform that action at this time.
0 commit comments