Skip to content

Commit

Permalink
Do not try to compute the center of a segment of null length (#34407)
Browse files Browse the repository at this point in the history
Fix #34396

(cherry picked from commit 0e63de6)
  • Loading branch information
Hugo Mercier authored and nyalldawson committed Feb 26, 2020
1 parent 8959e81 commit 5cb8573
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/symbology/qgslinesymbollayer.cpp
Expand Up @@ -1653,6 +1653,8 @@ void QgsTemplatedLineSymbolLayerBase::renderPolylineCentral( const QPolygonF &po
( last.y() - it->y() ) * ( last.y() - it->y() ) );
last = *it;
}
if ( qgsDoubleNear( length, 0.0 ) )
return;

const double midPoint = length / 2;

Expand Down

0 comments on commit 5cb8573

Please sign in to comment.