Skip to content
Permalink
Browse files

Fix code style with astyle.sh

  • Loading branch information
alisovenko committed Dec 26, 2016
1 parent a037f79 commit adba280e02d00bba97d8ad3c7e8da569032b4754
@@ -61,7 +61,7 @@ class QgsMapToolCapture : public QgsMapToolAdvancedDigitizing
void deleteTempRubberBand();

/**
* Return defalut Z value
* Return defalut Z value
*/
double getDefaultZValue();

@@ -46,7 +46,7 @@ QgsMapToolCapture::QgsMapToolCapture( QgsMapCanvas* canvas, QgsAdvancedDigitizin
#ifdef Q_OS_WIN
, mSkipNextContextMenuEvent( 0 )
#endif
, mDefaultZValue(Qgis::DEFAULT_Z_COORDINATE)
, mDefaultZValue( Qgis::DEFAULT_Z_COORDINATE )
{
mCaptureMode = mode;

@@ -83,7 +83,7 @@ class GUI_EXPORT QgsMapToolCapture : public QgsMapToolAdvancedDigitizing
void deleteTempRubberBand();

/**
* Return defalut Z value
* Return defalut Z value
*/
double getDefaultZValue() {return mDefaultZValue;};

@@ -40,8 +40,8 @@ QgsVectorLayer *QgsNewMemoryLayerDialog::runAndCreateLayer( QWidget *parent )

QgsWkbTypes::Type geometrytype = dialog.selectedType();

QString geomType = QgsWkbTypes::displayString(geometrytype);
if ( geomType.isNull())
QString geomType = QgsWkbTypes::displayString( geometrytype );
if ( geomType.isNull() )
geomType = "none";

QString layerProperties = QStringLiteral( "%1?" ).arg( geomType );
@@ -109,8 +109,8 @@ QgsWkbTypes::Type QgsNewMemoryLayerDialog::selectedType() const
wkbType = QgsWkbTypes::MultiPolygon;
}

if (mGeometryWithZCheckBox->isChecked() && wkbType != QgsWkbTypes::Unknown && wkbType != QgsWkbTypes::NoGeometry)
wkbType = QgsWkbTypes::to25D(wkbType);
if ( mGeometryWithZCheckBox->isChecked() && wkbType != QgsWkbTypes::Unknown && wkbType != QgsWkbTypes::NoGeometry )
wkbType = QgsWkbTypes::to25D( wkbType );

return wkbType;
}
@@ -159,8 +159,8 @@ QgsWkbTypes::Type QgsNewVectorLayerDialog::selectedType() const
wkbType = QgsWkbTypes::Polygon;
}

if (mGeometryWithZCheckBox->isChecked() && wkbType != QgsWkbTypes::Unknown)
wkbType = QgsWkbTypes::to25D(wkbType);
if ( mGeometryWithZCheckBox->isChecked() && wkbType != QgsWkbTypes::Unknown )
wkbType = QgsWkbTypes::to25D( wkbType );

return wkbType;
}

0 comments on commit adba280

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