mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
Do not try to compute the center of a segment of null length (#34407)
Fix #34396
This commit is contained in:
parent
ac8b7c0b18
commit
0e63de6837
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user