From 09b603df133d8b8f29283b54d295633aebb1ca94 Mon Sep 17 00:00:00 2001 From: Radim Blazek Date: Fri, 21 Dec 2012 11:24:42 +0100 Subject: [PATCH] QgsRubberBand constructor fix (it is not possible to call constructor from constructor in C++ (setPen( mPen ); QVector::const_iterator ptIt = pts.constBegin(); - for( ; ptIt != pts.constEnd(); ++ptIt ) + for ( ; ptIt != pts.constEnd(); ++ptIt ) { - p->drawEllipse( (*ptIt).x() - mWidth/2, (*ptIt).y() - mWidth/2, mWidth, mWidth ); + p->drawEllipse(( *ptIt ).x() - mWidth / 2, ( *ptIt ).y() - mWidth / 2, mWidth, mWidth ); } } break; @@ -496,7 +500,7 @@ QgsGeometry *QgsRubberBand::asGeometry() { QgsGeometry *geom = NULL; - switch( mGeometryType ) + switch ( mGeometryType ) { case QGis::Polygon: {