Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
skip blanks between wkt child blocks (fixes #13053)
(cherry-picked from 29aaf1b)
  • Loading branch information
jef-n authored and nyalldawson committed Jul 16, 2015
1 parent 9932ae1 commit 77e937f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/geometry/qgsgeometryutils.cpp
Expand Up @@ -497,6 +497,9 @@ QStringList QgsGeometryUtils::wktGetChildBlocks( const QString &wkt, const QStri
QStringList blocks;
for ( int i = 0, n = wkt.length(); i < n; ++i )
{
if ( wkt[i].isSpace() && level == 0 )
continue;

if ( wkt[i] == ',' && level == 0 )
{
if ( !block.isEmpty() )
Expand Down

0 comments on commit 77e937f

Please sign in to comment.