Skip to content
Permalink
Browse files

Fix parsing bug in wkb -> geos export

  • Loading branch information
mhugent committed Mar 22, 2013
1 parent 8f9ca6f commit 0594453ff55e705854e0cf00de72e3feadbf6c14
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/qgsgeometry.cpp
@@ -4556,7 +4556,7 @@ bool QgsGeometry::exportWkbToGeos()
int *nPoints;
int *numRings;
int *numPolygons;
int numLineStrings;
int *numLineStrings;
int idx, jdx, kdx;
unsigned char *ptr;
QgsPoint pt;
@@ -4642,9 +4642,9 @@ bool QgsGeometry::exportWkbToGeos()
case QGis::WKBMultiLineString:
{
QVector<GEOSGeometry*> lines;
numLineStrings = ( int )( mGeometry[5] );
numLineStrings = ( int* )( mGeometry + 5 );
ptr = ( mGeometry + 9 );
for ( jdx = 0; jdx < numLineStrings; jdx++ )
for ( jdx = 0; jdx < *numLineStrings; jdx++ )
{
QgsPolyline sequence;

0 comments on commit 0594453

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