diff -r 9727e545b0bc -r af6633412a6c src/layers/edittools.cpp --- 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(this->numpoints), - this->gridMatrix) + this->polygon.begin() + static_cast(this->numpoints)) ) { result.push_back(AppendToModel{ .newElement = elementFromPolygonAndColor(poly, MAIN_COLOR),