Skip to content
Permalink
Browse files

Fix TestQgsMapToolAddFeatureLine

  • Loading branch information
lbartoletti committed Aug 24, 2020
1 parent 57ddc98 commit a9d68a5ebd51efaaf4fca84a4d270ea4304a474a
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/src/app/testqgsmaptooladdfeatureline.cpp
@@ -30,6 +30,8 @@
#include "qgsmapmouseevent.h"
#include "testqgsmaptoolutils.h"

#include <QDebug>

bool operator==( const QgsGeometry &g1, const QgsGeometry &g2 )
{
if ( g1.isNull() && g2.isNull() )
@@ -212,7 +214,7 @@ void TestQgsMapToolAddFeatureLine::initTestCase()

mLayerTopoZ->startEditing();
QgsFeature topoFeat;
topoFeat.setGeometry( QgsGeometry::fromWkt( "MultiLineStringZ ((7.25 6 0, 7.25 7 0, 7.5 7 0, 7.5 6 0, 7.25 6 0),(6 6 0, 6 7 10, 7 7 0, 7 6 0, 6 6 0),(6.25 6.25 0, 6.75 6.25 0, 6.75 6.75 0, 6.25 6.75 0, 6.25 6.25 0)));" ) );
topoFeat.setGeometry( QgsGeometry::fromWkt( "MultiLineStringZ ((7.25 6 0, 7.25 7 0, 7.5 7 0, 7.5 6 0, 7.25 6 0),(6 6 0, 6 7 10, 7 7 0, 7 6 0, 6 6 0),(6.25 6.25 0, 6.75 6.25 0, 6.75 6.75 0, 6.25 6.75 0, 6.25 6.25 0))" ) );

mLayerTopoZ->addFeature( topoFeat );
QCOMPARE( mLayerTopoZ->featureCount(), ( long ) 1 );

0 comments on commit a9d68a5

Please sign in to comment.
You can’t perform that action at this time.