@@ -421,7 +421,7 @@ void QgsSelectedFeature::createVertexMapPolygon()
421
421
const QgsPolyline& poly = polygon[i2];
422
422
for ( int i = 0 ; i < poly.size (); i++ )
423
423
{
424
- mVertexMap .insert ( y + i, new QgsVertexEntry ( mCanvas , mVlayer , poly[i], i, tr ( " ring %1, vertex %2" ).arg ( i2 ).arg ( i ) ) );
424
+ mVertexMap .insert ( y + i, new QgsVertexEntry ( mCanvas , mVlayer , poly[i], tr ( " ring %1, vertex %2" ).arg ( i2 ).arg ( i ) ) );
425
425
}
426
426
mVertexMap [y + poly.size () - 1 ]->setEqual ( y );
427
427
mVertexMap [y]->setEqual ( y + poly.size () - 1 );
@@ -441,7 +441,7 @@ void QgsSelectedFeature::createVertexMapPolygon()
441
441
const QgsPolyline& poly = poly2[i3];
442
442
for ( int i = 0 ; i < poly.size (); i++ )
443
443
{
444
- mVertexMap .insert ( y + i, new QgsVertexEntry ( mCanvas , mVlayer , poly[i], y + i - 1 , tr ( " polygon %1, ring %2, vertex %3" ).arg ( i2 ).arg ( i3 ).arg ( i ) ) );
444
+ mVertexMap .insert ( y + i, new QgsVertexEntry ( mCanvas , mVlayer , poly[i], tr ( " polygon %1, ring %2, vertex %3" ).arg ( i2 ).arg ( i3 ).arg ( i ) ) );
445
445
}
446
446
mVertexMap [y + poly.size () - 1 ]->setEqual ( y );
447
447
mVertexMap [y]->setEqual ( y + poly.size () - 1 );
@@ -465,7 +465,7 @@ void QgsSelectedFeature::createVertexMapLine()
465
465
QgsPolyline poly = mLine [i2];
466
466
for ( int i = 0 ; i < poly.size (); i++ )
467
467
{
468
- mVertexMap .insert ( y + i, new QgsVertexEntry ( mCanvas , mVlayer , poly[i], i, tr ( " polyline %1, vertex %2" ).arg ( i2 ).arg ( i ) ) );
468
+ mVertexMap .insert ( y + i, new QgsVertexEntry ( mCanvas , mVlayer , poly[i], tr ( " polyline %1, vertex %2" ).arg ( i2 ).arg ( i ) ) );
469
469
}
470
470
y += poly.size ();
471
471
}
@@ -475,7 +475,7 @@ void QgsSelectedFeature::createVertexMapLine()
475
475
QgsPolyline poly = mGeometry ->asPolyline ();
476
476
for ( int i = 0 ; i < poly.size (); i++ )
477
477
{
478
- mVertexMap .insert ( i, new QgsVertexEntry ( mCanvas , mVlayer , poly[i], i, tr ( " vertex %1" ).arg ( i ) ) );
478
+ mVertexMap .insert ( i, new QgsVertexEntry ( mCanvas , mVlayer , poly[i], tr ( " vertex %1" ).arg ( i ) ) );
479
479
}
480
480
}
481
481
}
@@ -490,13 +490,13 @@ void QgsSelectedFeature::createVertexMapPoint()
490
490
QgsMultiPoint poly = mGeometry ->asMultiPoint ();
491
491
for ( int i = 0 ; i < poly.size (); i++ )
492
492
{
493
- mVertexMap .insert ( i, new QgsVertexEntry ( mCanvas , mVlayer , poly[i], 1 , tr ( " point %1" ).arg ( i ) ) );
493
+ mVertexMap .insert ( i, new QgsVertexEntry ( mCanvas , mVlayer , poly[i], tr ( " point %1" ).arg ( i ) ) );
494
494
}
495
495
}
496
496
else
497
497
{
498
498
// single point
499
- mVertexMap .insert ( 1 , new QgsVertexEntry ( mCanvas , mVlayer , mGeometry ->asPoint (), 1 , tr ( " single point" ) ) );
499
+ mVertexMap .insert ( 1 , new QgsVertexEntry ( mCanvas , mVlayer , mGeometry ->asPoint (), tr ( " single point" ) ) );
500
500
}
501
501
}
502
502
0 commit comments