Fix paint edit history
This commit is contained in:
parent
2f6de2a285
commit
b79ba466e0
1 changed files with 4 additions and 3 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue