Coverity fixes

This commit is contained in:
Jon Evans
2024-04-05 08:16:29 -04:00
parent c1e7668d80
commit 7baccba01c
5 changed files with 11 additions and 7 deletions
+3
View File
@@ -82,6 +82,9 @@ void PackPolyLine( kiapi::common::types::PolyLine& aOutput, const SHAPE_LINE_CHA
{
for( int vertex = 0; vertex < aSlc.PointCount(); vertex = aSlc.NextShape( vertex ) )
{
if( vertex < 0 )
break;
kiapi::common::types::PolyLineNode* node = aOutput.mutable_nodes()->Add();
if( aSlc.IsPtOnArc( vertex ) )