Skip to content

Commit

Permalink
QgsMeshContours::exportLines(): fix duplicate expression (spotted by …
Browse files Browse the repository at this point in the history
…cppcheck) (#36498)
  • Loading branch information
rouault committed May 18, 2020
1 parent 9cc37a1 commit 7580d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/mesh/qgsmeshcontours.cpp
Expand Up @@ -308,7 +308,7 @@ QgsGeometry QgsMeshContours::exportLines( const QgsMeshDatasetIndex &index,

// value is outside the range
if ( ( ( value > values[0] ) && ( value > values[1] ) && ( value > values[2] ) ) ||
( ( value > values[0] ) && ( value > values[1] ) && ( value > values[2] ) ) )
( ( value < values[0] ) && ( value < values[1] ) && ( value < values[2] ) ) )
continue;

// all values are the same
Expand Down

0 comments on commit 7580d2f

Please sign in to comment.