SHAPE_POLY_SET: AddHole should return the hole idx

Returning the poly index is not useful as it does not allow the use of
other SHAPE_POLY_SET Hole* functions that expect to get the indices of
holes rather than the outline
This commit is contained in:
Seth Hillbrand 2020-07-18 07:03:40 -07:00
parent 4aef369ca2
commit 854e7a4928
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ int SHAPE_POLY_SET::AddHole( const SHAPE_LINE_CHAIN& aHole, int aOutline )
poly.push_back( aHole );
return poly.size() - 1;
return poly.size() - 2;
}