diff -r f9f308c8e0c5 -r f127982d3412 src/tools/drawtool.cpp --- 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