Skip to content

Commit

Permalink
Do not try to compute the center of a segment of null length (qgis#34407
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Mercier committed Feb 12, 2020
1 parent ac8b7c0 commit 0e63de6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/symbology/qgslinesymbollayer.cpp
Original file line number Diff line number Diff line change
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 0e63de6

Please sign in to comment.