From b79ba466e0834aa5a8dc73b456f5ac18bf1c018d Mon Sep 17 00:00:00 2001 From: GriffinR Date: Fri, 14 Jan 2022 03:12:39 -0500 Subject: [PATCH] Fix paint edit history --- src/editor.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/editor.cpp b/src/editor.cpp index 9ef5153b..5371e1a3 100644 --- a/src/editor.cpp +++ b/src/editor.cpp @@ -1173,10 +1173,11 @@ void Editor::mouseEvent_map(QGraphicsSceneMouseEvent *event, MapPixmapItem *item } else { item->floodFill(event); } - } else if (event->type() == QEvent::GraphicsSceneMouseRelease) { - // Update the tile rectangle at the end of a click-drag selection - this->updateCursorRectPos(pos.x(), pos.y()); } else { + if (event->type() == QEvent::GraphicsSceneMouseRelease) { + // Update the tile rectangle at the end of a click-drag selection + this->updateCursorRectPos(pos.x(), pos.y()); + } this->setSmartPathCursorMode(event); this->setStraightPathCursorMode(event); if (this->cursorMapTileRect->getStraightPathMode()) {