--- a/src/tools/drawtool.cpp Sun Aug 29 20:05:24 2021 +0300 +++ b/src/tools/drawtool.cpp Sun Aug 29 20:39:55 2021 +0300 @@ -80,12 +80,13 @@ return false; } -bool DrawTool::keyReleased(QKeyEvent* event) +bool DrawTool::keyReleased(Document*, Canvas* canvas, QKeyEvent* event) { if (event->key() == Qt::Key_Escape) { this->polygon.clear(); this->updatePreviewPolygon(); + canvas->update(); return true; } else