Skip to content
Permalink
Browse files

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

Fix #34396
  • Loading branch information
Hugo Mercier
Hugo Mercier committed Feb 12, 2020
1 parent ac8b7c0 commit 0e63de68375d72aa5d87447b67171bd50c4ed4c4
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 0e63de6

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