clipper: Add assertion to silence a static analyzer warning

This commit is contained in:
Turo Lamminen
2017-11-15 12:35:06 +02:00
parent c248ae3797
commit 76de3e0828
+1
View File
@@ -2431,6 +2431,7 @@ void Clipper::ProcessHorizontal(TEdge *horzEdge)
if ( horzEdge->outIdx >= 0 )
IntersectEdges( horzEdge, eMaxPair,
IntPoint(horzEdge->xtop, horzEdge->ycurr), ipBoth);
assert(eMaxPair);
if (eMaxPair->outIdx >= 0) throw clipperException("ProcessHorizontal error");
DeleteFromAEL(eMaxPair);
DeleteFromAEL(horzEdge);