diff --git a/src/core/qgsvectorfilewriter.cpp b/src/core/qgsvectorfilewriter.cpp index c29f5744632c..9c5d042cbfcb 100644 --- a/src/core/qgsvectorfilewriter.cpp +++ b/src/core/qgsvectorfilewriter.cpp @@ -3765,7 +3765,7 @@ QgsVectorFileWriter::WriterError QgsVectorFileWriter::writeAsVectorFormatV2( Qgs if ( err != NoError ) return err; - return writeAsVectorFormatV2( details, fileName, transformContext, options, errorMessage, newFilename, newLayer ); + return writeAsVectorFormatV2( details, fileName, transformContext, options, newFilename, newLayer, errorMessage ); } QgsVectorFileWriter::WriterError QgsVectorFileWriter::writeAsVectorFormatV3( QgsVectorLayer *layer, const QString &fileName, const QgsCoordinateTransformContext &transformContext, const QgsVectorFileWriter::SaveVectorOptions &options, QString *errorMessage, QString *newFilename, QString *newLayer ) diff --git a/src/gui/qgsmaptoolcapture.cpp b/src/gui/qgsmaptoolcapture.cpp index e17ae834bb74..a293e6d12d7c 100644 --- a/src/gui/qgsmaptoolcapture.cpp +++ b/src/gui/qgsmaptoolcapture.cpp @@ -333,8 +333,8 @@ bool QgsMapToolCapture::tracingAddVertex( const QgsPointXY &point ) { const QgsGeometry linear = QgsGeometry( mCaptureCurve.segmentize() ); const QgsGeometry curved = linear.convertToCurves( - QgsSettingsRegistryCore::settingsDigitizingConvertToCurveAngleTolerance->value(), - QgsSettingsRegistryCore::settingsDigitizingConvertToCurveDistanceTolerance->value() + QgsSettingsRegistryCore::settingsDigitizingConvertToCurveDistanceTolerance->value(), + QgsSettingsRegistryCore::settingsDigitizingConvertToCurveAngleTolerance->value() ); if ( QgsWkbTypes::flatType( curved.wkbType() ) != Qgis::WkbType::CompoundCurve ) {