Skip to content

Commit

Permalink
Fix arguments in wrong order
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and github-actions[bot] committed Nov 20, 2024
1 parent e903069 commit f31a8b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsinternalgeometryengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ QgsLineString *doDensify( const QgsLineString *ring, int extraNodesPerSegment =
if ( extraNodesPerSegment < 0 )
{
// distance mode
extraNodesThisSegment = std::floor( QgsGeometryUtilsBase::distance2D( x2, y2, x1, y1 ) / distance );
extraNodesThisSegment = std::floor( QgsGeometryUtilsBase::distance2D( x1, y1, x2, y2 ) / distance );
if ( extraNodesThisSegment >= 1 )
multiplier = 1.0 / ( extraNodesThisSegment + 1 );
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorfilewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3776,7 +3776,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 )
Expand Down
4 changes: 2 additions & 2 deletions src/gui/maptools/qgsmaptoolcapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,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 )
{
Expand Down

0 comments on commit f31a8b2

Please sign in to comment.