mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix crash when calculating area for invalid circular string
This commit is contained in:
parent
6205ca5ef7
commit
4e3eff947c
@ -766,6 +766,9 @@ bool QgsCircularString::pointAt( int node, QgsPoint &point, QgsVertexId::VertexT
|
||||
|
||||
void QgsCircularString::sumUpArea( double &sum ) const
|
||||
{
|
||||
if ( numPoints() < 3 )
|
||||
return;
|
||||
|
||||
int maxIndex = numPoints() - 1;
|
||||
|
||||
for ( int i = 0; i < maxIndex; i += 2 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user