We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 8f9ca6f commit 0594453Copy full SHA for 0594453
src/core/qgsgeometry.cpp
@@ -4556,7 +4556,7 @@ bool QgsGeometry::exportWkbToGeos()
4556
int *nPoints;
4557
int *numRings;
4558
int *numPolygons;
4559
- int numLineStrings;
+ int *numLineStrings;
4560
int idx, jdx, kdx;
4561
unsigned char *ptr;
4562
QgsPoint pt;
@@ -4642,9 +4642,9 @@ bool QgsGeometry::exportWkbToGeos()
4642
case QGis::WKBMultiLineString:
4643
{
4644
QVector<GEOSGeometry*> lines;
4645
- numLineStrings = ( int )( mGeometry[5] );
+ numLineStrings = ( int* )( mGeometry + 5 );
4646
ptr = ( mGeometry + 9 );
4647
- for ( jdx = 0; jdx < numLineStrings; jdx++ )
+ for ( jdx = 0; jdx < *numLineStrings; jdx++ )
4648
4649
QgsPolyline sequence;
4650
0 commit comments