Skip to content

Commit

Permalink
[Geometry checker] Make self intersection fix create a multilinestrin…
Browse files Browse the repository at this point in the history
…g instead of a multicurve since prts are linestrings
  • Loading branch information
manisandro committed Oct 12, 2015
1 parent fdc85ba commit c1028ef
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -10,7 +10,7 @@
#include "qgslinestringv2.h"
#include "qgsgeometryengine.h"
#include "qgsmultipolygonv2.h"
#include "qgsmulticurvev2.h"
#include "qgsmultilinestringv2.h"
#include "qgsgeometryutils.h"
#include "../utils/qgsfeaturepool.h"

Expand Down Expand Up @@ -266,7 +266,7 @@ void QgsGeometrySelfIntersectionCheck::fixError( QgsGeometryCheckError* error, i
}
else
{
QgsMultiCurveV2* geomCollection = new QgsMultiCurveV2();
QgsMultiCurveV2* geomCollection = new QgsMultiLineStringV2();
geomCollection->addGeometry( ringGeom1 );
geomCollection->addGeometry( ringGeom2 );
feature.setGeometry( new QgsGeometry( geomCollection ) );
Expand Down

0 comments on commit c1028ef

Please sign in to comment.