Skip to content
Permalink
Browse files

indentation update

  • Loading branch information
jef-n committed May 9, 2014
1 parent 38e6947 commit f5f0326ec8848ea44727decaeaf9f4a98738f2d9
Showing with 18 additions and 15 deletions.
  1. +18 −15 src/core/symbology-ng/qgssymbollayerv2utils.cpp
@@ -682,7 +682,8 @@ QList<QPolygonF> offsetLine( QPolygonF polyline, double dist )

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

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

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

delete tempGeometry;
return resultLine;
}
else if ( QGis::flatType( tempGeometry->wkbType() ) == QGis::WKBMultiLineString )
{
QgsMultiPolyline tempMPolyline = tempGeometry->asMultiPolyline();
QgsMultiPolyline tempMPolyline = tempGeometry->asMultiPolyline();

for ( int part = 0; part < tempMPolyline.count(); ++part )
{
tempPolyline = tempMPolyline[ part ];
for ( int part = 0; part < tempMPolyline.count(); ++part )
{
tempPolyline = tempMPolyline[ part ];

pointCount = tempPolyline.count();
newLine.resize( pointCount );
pointCount = tempPolyline.count();
newLine.resize( pointCount );

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

newLine = QPolygonF();
}
delete tempGeometry;
return resultLine;
newLine = QPolygonF();
}
delete tempGeometry;
return resultLine;
}
}
delete tempGeometry;

0 comments on commit f5f0326

Please sign in to comment.
You can’t perform that action at this time.