--- a/src/layers/edittools.cpp Sun Jul 03 13:44:11 2022 +0300 +++ b/src/layers/edittools.cpp Sun Jul 03 14:35:06 2022 +0300 @@ -440,8 +440,7 @@ else if (this->numpoints > 2) { for (const PlainPolygonElement& poly : polygonize( this->polygon.begin(), - this->polygon.begin() + static_cast<long>(this->numpoints), - this->gridMatrix) + this->polygon.begin() + static_cast<long>(this->numpoints)) ) { result.push_back(AppendToModel{ .newElement = elementFromPolygonAndColor(poly, MAIN_COLOR),