Don't create an empty cmd::CopyRegion()

This might happen when we double-click some tiles outside the tilemap region.
This commit is contained in:
David Capello 2020-02-11 12:41:32 -03:00
parent 000e22f4d5
commit 736e119440

View File

@ -498,7 +498,7 @@ void modify_tilemap_cel_region(
cmds->executeAndAdd(
new cmd::ReplaceImage(cel->sprite(), cel->imageRef(), newTilemap));
}
else {
else if (!tilePtsRgn.isEmpty()) {
cmds->executeAndAdd(
new cmd::CopyRegion(
cel->image(),