Skip to content

Commit 47b7f00

Browse files
committedApr 29, 2020
Fix build
1 parent c27dcf4 commit 47b7f00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/core/geometry/qgsgeos.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ std::unique_ptr<QgsAbstractGeometry> QgsGeos::fromGeos( const GEOSGeometry *geos
10961096
{
10971097
const GEOSCoordSequence *cs = GEOSGeom_getCoordSeq_r( geosinit.ctxt, geos );
10981098
unsigned int nPoints = 0;
1099-
GEOSCoordSeq_getSize_r( geosinit()->ctxt, cs, &nPoints );
1099+
GEOSCoordSeq_getSize_r( geosinit.ctxt, cs, &nPoints );
11001100
return nPoints > 0 ? std::unique_ptr<QgsAbstractGeometry>( coordSeqPoint( cs, 0, hasZ, hasM ).clone() ) : nullptr;
11011101
}
11021102
case GEOS_LINESTRING:
@@ -1118,7 +1118,7 @@ std::unique_ptr<QgsAbstractGeometry> QgsGeos::fromGeos( const GEOSGeometry *geos
11181118
if ( cs )
11191119
{
11201120
unsigned int nPoints = 0;
1121-
GEOSCoordSeq_getSize_r( geosinit()->ctxt, cs, &nPoints );
1121+
GEOSCoordSeq_getSize_r( geosinit.ctxt, cs, &nPoints );
11221122
if ( nPoints > 0 )
11231123
multiPoint->addGeometry( coordSeqPoint( cs, 0, hasZ, hasM ).clone() );
11241124
}

0 commit comments

Comments
 (0)
Please sign in to comment.