Skip to content

Commit

Permalink
Fixed a crash when capturing polylines.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12954 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Feb 18, 2010
1 parent e508f3a commit 00019a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsgeometry.cpp
Expand Up @@ -6394,7 +6394,7 @@ void QgsGeometry::validatePolyline( QList<Error> &errors, int i, QgsPolyline lin
while ( j < line.size() - 1 )
{
int n = 0;
while ( j < line.size() && line[j] == line[j+1] )
while ( j < line.size() - 1 && line[j] == line[j+1] )
{
line.remove( j );
n++;
Expand Down

0 comments on commit 00019a6

Please sign in to comment.