src/tools/drawtool.cpp

changeset 125
f127982d3412
parent 124
f9f308c8e0c5
child 126
a7c720aff97c
--- 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

mercurial