File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -712,18 +712,18 @@ void RecordingMapTool::collectVertices()
712712 int offsetId = 1 ;
713713 bool foundVertexAtDifferentPositions = false ;
714714 // While the first and next vertex are the same position we are looking for the next vertex
715- while (!foundVertexAtDifferentPositions && offsetId < vertexCount)
715+ while ( !foundVertexAtDifferentPositions && offsetId < vertexCount )
716716 {
717- id = QgsVertexId ( vertexId.part , vertexId.ring , offsetId );
717+ id = QgsVertexId ( vertexId.part , vertexId.ring , offsetId );
718718
719- if (geom->vertexAt (vertexId) != geom->vertexAt (id) )
719+ if ( geom->vertexAt ( vertexId ) != geom->vertexAt ( id ) )
720720 {
721721 foundVertexAtDifferentPositions = true ;
722722 }
723723 offsetId++;
724724 }
725-
726- if (foundVertexAtDifferentPositions)
725+
726+ if ( foundVertexAtDifferentPositions )
727727 {
728728 // start handle point
729729 QgsPoint handle = handlePoint ( geom->vertexAt ( id ), geom->vertexAt ( vertexId ) );
Original file line number Diff line number Diff line change @@ -954,11 +954,11 @@ void TestMapTools::testAddVertexLineLayer()
954954 mapTool.addPoint ( pointsToAdd[0 ] );
955955
956956 QVERIFY ( mapTool.handles ().isEmpty () );
957-
957+
958958 mapTool.addPoint ( pointsToAdd[1 ] );
959959
960- QCOMPARE ( mapTool.handles ().vertexAt (0 ).asWkt ( 14 ), " Point (-96.22182942132511 22.34151145046518)" );
961- QCOMPARE ( mapTool.handles ().vertexAt (1 ), pointsToAdd[0 ]);
960+ QCOMPARE ( mapTool.handles ().vertexAt ( 0 ).asWkt ( 14 ), " Point (-96.22182942132511 22.34151145046518)" );
961+ QCOMPARE ( mapTool.handles ().vertexAt ( 1 ), pointsToAdd[0 ] );
962962
963963 delete project;
964964 delete lineLayer;
You can’t perform that action at this time.
0 commit comments