Fixes by clang-tidy

This commit is contained in:
magnesj authored and Magne Sjaastad committed 2024-04-18 07:26:55 +02:00
1 parent e77b4f9e3b
commit 932464ea55
1 file changed
+1 -1
@@ -803,7 +803,7 @@ void RimPolygonFilter::updateCells()
}
// We need at least three points to make a closed polygon, or just 2 for a polyline
if ( ( !isPolygonClosed() && ( points.size() < 1 ) ) || ( isPolygonClosed() && ( points.size() < 3 ) ) ) return;
if ( ( !isPolygonClosed() && ( points.empty() ) ) || ( isPolygonClosed() && ( points.size() < 3 ) ) ) return;
// make sure first and last point is the same (req. by closed polygon methods used later)
if ( isPolygonClosed() ) points.push_back( points.front() );