mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix deprecated warning
This commit is contained in:
parent
1602c02df7
commit
c0799d4764
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user