Skip to content

Commit

Permalink
Fix parsing bug in wkb -> geos export
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Mar 22, 2013
1 parent 8f9ca6f commit 0594453
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/qgsgeometry.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 0594453

Please sign in to comment.