Fixed a crash when capturing polylines.

git-svn-id: http://svn.osgeo.org/qgis/trunk@12954 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
wonder 2010-02-18 14:40:16 +00:00
parent 3414424412
commit 6369374ba6

View File

@ -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++;