Skip to content
Permalink
Browse files

Fix and wkt formating for delimited text provider test

  • Loading branch information
mhugent committed May 26, 2015
1 parent 23ef9da commit 13d67c09cc843680cabb881332814aaad74c5f58
@@ -147,6 +147,10 @@ const QgsAbstractGeometryV2* QgsGeometry::geometry() const
QgsGeometry* QgsGeometry::fromWkt( QString wkt )
{
QgsAbstractGeometryV2* geom = QgsGeometryImport::geomFromWkt( wkt );
if ( !geom )
{
return 0;
}
return new QgsGeometry( geom );
}

@@ -140,7 +140,10 @@ QgsAbstractGeometryV2* QgsGeometryImport::geomFromWkt( const QString& text )

if ( geom )
{
geom->fromWkt( text );
if ( !geom->fromWkt( text ) )
{
delete geom; return 0;
}
}
return geom;
}

0 comments on commit 13d67c0

Please sign in to comment.