Fix deprecated warning

This commit is contained in:
Nyall Dawson 2016-05-19 15:11:03 +10:00
parent 1602c02df7
commit c0799d4764

View File

@ -301,7 +301,7 @@ void TestQgsMapCanvas::testMagnificationExtent()
QgsFeature f2( layer->dataProvider()->fields(), 2 );
QgsFeatureIds ids;
ids << f1.id() << f2.id();
layer->setSelectedFeatures( ids );
layer->selectByIds( ids );
mCanvas->zoomToSelected( layer );
initialExtent = mCanvas->extent();