mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
fix rubberband test
This commit is contained in:
parent
00e2b23959
commit
0318df21cd
@ -90,9 +90,10 @@ void TestQgsRubberband::testAddSingleMultiGeometries()
|
||||
QgsGeometry* geomSinglePart = QgsGeometry::fromWkt( "POLYGON((-0.00022418 -0.00000279,-0.0001039 0.00002395,-0.00008677 -0.00005313,-0.00020705 -0.00007987,-0.00022418 -0.00000279))" );
|
||||
QgsGeometry* geomMultiPart = QgsGeometry::fromWkt( "MULTIPOLYGON(((-0.00018203 0.00012178,-0.00009444 0.00014125,-0.00007861 0.00007001,-0.00016619 0.00005054,-0.00018203 0.00012178)),((-0.00030957 0.00009464,-0.00021849 0.00011489,-0.00020447 0.00005184,-0.00029555 0.00003158,-0.00030957 0.00009464)))" );
|
||||
|
||||
mCanvas->setExtent(QgsRectangle(-1e-3,-1e-3,1e-3,1e-3)); // otherwise point cannot be converted to canvas coord
|
||||
|
||||
mRubberband->addGeometry( geomSinglePart, mPolygonLayer );
|
||||
mRubberband->addGeometry( geomMultiPart, mPolygonLayer );
|
||||
|
||||
QVERIFY( mRubberband->numberOfVertices() == 15 );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user