Skip to content
Permalink
Browse files

Fix build

  • Loading branch information
nyalldawson committed Apr 28, 2020
1 parent c27dcf4 commit 47b7f00cb94526a6acd026f69160c89f8a7f1e4c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/geometry/qgsgeos.cpp
@@ -1096,7 +1096,7 @@ std::unique_ptr<QgsAbstractGeometry> QgsGeos::fromGeos( const GEOSGeometry *geos
{
const GEOSCoordSequence *cs = GEOSGeom_getCoordSeq_r( geosinit.ctxt, geos );
unsigned int nPoints = 0;
GEOSCoordSeq_getSize_r( geosinit()->ctxt, cs, &nPoints );
GEOSCoordSeq_getSize_r( geosinit.ctxt, cs, &nPoints );
return nPoints > 0 ? std::unique_ptr<QgsAbstractGeometry>( coordSeqPoint( cs, 0, hasZ, hasM ).clone() ) : nullptr;
}
case GEOS_LINESTRING:
@@ -1118,7 +1118,7 @@ std::unique_ptr<QgsAbstractGeometry> QgsGeos::fromGeos( const GEOSGeometry *geos
if ( cs )
{
unsigned int nPoints = 0;
GEOSCoordSeq_getSize_r( geosinit()->ctxt, cs, &nPoints );
GEOSCoordSeq_getSize_r( geosinit.ctxt, cs, &nPoints );
if ( nPoints > 0 )
multiPoint->addGeometry( coordSeqPoint( cs, 0, hasZ, hasM ).clone() );
}

0 comments on commit 47b7f00

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