mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
Fixes by clang-tidy
This commit is contained in:
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() );
|
||||
|
||||
Reference in new issue
Block a user