Skip to content

Commit e1b30c5

Browse files
committedDec 15, 2016
indentation fix
1 parent c956fe9 commit e1b30c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/app/dwg/qgsdwgimporter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ bool QgsDwgImporter::import( const QString &drawing, QString &error, bool doExpa
184184
QgsDebugCall;
185185

186186
OGRwkbGeometryType lineGeomType, hatchGeomType;
187-
if( useCurves )
187+
if ( useCurves )
188188
{
189189
#if !defined(GDAL_COMPUTE_VERSION) || GDAL_VERSION_NUM < GDAL_COMPUTE_VERSION(2,0,0)
190190
error = QObject::tr( "Curves only supported with GDAL2" );
@@ -1178,7 +1178,7 @@ bool QgsDwgImporter::createFeature( OGRLayerH layer, OGRFeatureH f, const QgsAbs
11781178
const QgsAbstractGeometry *g;
11791179
QScopedPointer<QgsAbstractGeometry> sg( nullptr );
11801180

1181-
if( !mUseCurves && g0.hasCurvedSegments() )
1181+
if ( !mUseCurves && g0.hasCurvedSegments() )
11821182
{
11831183
sg.reset( g0.segmentize() );
11841184
g = sg.data();
@@ -1190,7 +1190,7 @@ bool QgsDwgImporter::createFeature( OGRLayerH layer, OGRFeatureH f, const QgsAbs
11901190

11911191
QByteArray wkb = g->asWkb();
11921192
OGRGeometryH geom;
1193-
if ( OGR_G_CreateFromWkb( (unsigned char *) wkb.constData(), nullptr, &geom, wkb.size() ) != OGRERR_NONE )
1193+
if ( OGR_G_CreateFromWkb(( unsigned char * ) wkb.constData(), nullptr, &geom, wkb.size() ) != OGRERR_NONE )
11941194
{
11951195
LOG( QObject::tr( "Could not create geometry [%1]" ).arg( QString::fromUtf8( CPLGetLastErrorMsg() ) ) );
11961196
}

0 commit comments

Comments
 (0)
Please sign in to comment.