Skip to content

Commit

Permalink
[pal] Avoid overly eager truncation of polygon candidates for long sk…
Browse files Browse the repository at this point in the history
…inny polygons
  • Loading branch information
nyalldawson committed May 3, 2020
1 parent ba7df72 commit d6381bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/pal/pal.cpp
Expand Up @@ -312,7 +312,7 @@ std::unique_ptr<Problem> Pal::extract( const QgsRectangle &extent, const QgsGeom
break;

case GEOS_POLYGON:
maxCandidates = feat->feature->maximumPolygonCandidates();
maxCandidates = std::max( static_cast< std::size_t >( 4 ), feat->feature->maximumPolygonCandidates() );
break;
}

Expand Down

0 comments on commit d6381bc

Please sign in to comment.