Skip to content
Permalink
Browse files

Do not try to compute the center of a segment of null length (#34407)

Fix #34396

(cherry picked from commit 0e63de6)
  • Loading branch information
Hugo Mercier authored and nyalldawson committed Feb 26, 2020
1 parent 8959e81 commit 5cb85731ef4081335bf84ed36ee8539b6597464d
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/symbology/qgslinesymbollayer.cpp
@@ -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;

0 comments on commit 5cb8573

Please sign in to comment.
You can’t perform that action at this time.