Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Followup 800c54f, nicer fix
  • Loading branch information
nyalldawson committed Apr 28, 2020
1 parent d28e301 commit 8ba73c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgstessellator.cpp
Expand Up @@ -442,7 +442,7 @@ void QgsTessellator::addPolygon( const QgsPolygon &polygon, float extrusionHeigh
const double *zData = !mNoZ ? exterior->zData() : nullptr;
for ( int i = 0; i < 3; i++ )
{
float z = ( ( mNoZ || !exterior->is3D() ) ? 0 : *zData++ );
float z = ( !zData ? 0 : *zData++ );
if ( z < zMin )
zMin = z;
if ( z > zMax )
Expand Down

0 comments on commit 8ba73c6

Please sign in to comment.