Skip to content
Permalink
Browse files
fix rubberband test
  • Loading branch information
vmora authored and m-kuhn committed Jul 18, 2013
1 parent 00e2b23 commit 0318df21cd9b614ea1efe4264b451e39febb2b7e
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/src/gui/testqgsrubberband.cpp
@@ -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 );
}

0 comments on commit 0318df2

Please sign in to comment.