Skip to content

Commit f5f0326

Browse files
committed
indentation update
1 parent 38e6947 commit f5f0326

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

src/core/symbology-ng/qgssymbollayerv2utils.cpp

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,8 @@ QList<QPolygonF> offsetLine( QPolygonF polyline, double dist )
682682

683683
QgsPolyline tempPolyline( pointCount );
684684
QPointF* tempPtr = polyline.data();
685-
for ( i = 0; i < pointCount; ++i, tempPtr++ ) tempPolyline[i] = QgsPoint( tempPtr->rx(), tempPtr->ry() );
685+
for ( i = 0; i < pointCount; ++i, tempPtr++ )
686+
tempPolyline[i] = QgsPoint( tempPtr->rx(), tempPtr->ry() );
686687

687688
QgsGeometry* tempGeometry = QgsGeometry::fromPolyline( tempPolyline );
688689
if ( tempGeometry )
@@ -702,31 +703,33 @@ QList<QPolygonF> offsetLine( QPolygonF polyline, double dist )
702703
newLine.resize( pointCount );
703704

704705
QgsPoint* tempPtr2 = tempPolyline.data();
705-
for ( i = 0; i < pointCount; ++i, tempPtr2++ ) newLine[i] = QPointF( tempPtr2->x(), tempPtr2->y() );
706+
for ( i = 0; i < pointCount; ++i, tempPtr2++ )
707+
newLine[i] = QPointF( tempPtr2->x(), tempPtr2->y() );
706708
resultLine.append( newLine );
707709

708710
delete tempGeometry;
709711
return resultLine;
710712
}
711713
else if ( QGis::flatType( tempGeometry->wkbType() ) == QGis::WKBMultiLineString )
712714
{
713-
QgsMultiPolyline tempMPolyline = tempGeometry->asMultiPolyline();
715+
QgsMultiPolyline tempMPolyline = tempGeometry->asMultiPolyline();
714716

715-
for ( int part = 0; part < tempMPolyline.count(); ++part )
716-
{
717-
tempPolyline = tempMPolyline[ part ];
717+
for ( int part = 0; part < tempMPolyline.count(); ++part )
718+
{
719+
tempPolyline = tempMPolyline[ part ];
718720

719-
pointCount = tempPolyline.count();
720-
newLine.resize( pointCount );
721+
pointCount = tempPolyline.count();
722+
newLine.resize( pointCount );
721723

722-
QgsPoint* tempPtr2 = tempPolyline.data();
723-
for ( i = 0; i < pointCount; ++i, tempPtr2++ ) newLine[i] = QPointF( tempPtr2->x(), tempPtr2->y() );
724-
resultLine.append( newLine );
724+
QgsPoint* tempPtr2 = tempPolyline.data();
725+
for ( i = 0; i < pointCount; ++i, tempPtr2++ )
726+
newLine[i] = QPointF( tempPtr2->x(), tempPtr2->y() );
727+
resultLine.append( newLine );
725728

726-
newLine = QPolygonF();
727-
}
728-
delete tempGeometry;
729-
return resultLine;
729+
newLine = QPolygonF();
730+
}
731+
delete tempGeometry;
732+
return resultLine;
730733
}
731734
}
732735
delete tempGeometry;

0 commit comments

Comments
 (0)