fix undo pasting raster selection to cell
This commit is contained in:
parent
8216c569d5
commit
987e0453aa
1 changed files with 6 additions and 0 deletions
|
@ -1711,6 +1711,12 @@ static void pasteRasterImageInCell(int row, int col,
|
|||
if (!isPaste) return;
|
||||
cell = xsh->getCell(row, col);
|
||||
|
||||
// The flag TTool::m_isLevelRenumbererd is evaluated in the undo.
|
||||
// We need to reset the flag here as the operation does not call
|
||||
// TTool::touchImage(). Currently the flag can be always false as the
|
||||
// operation does not renumber cells regardless of the preferences.
|
||||
TTool::m_isLevelRenumbererd = false;
|
||||
|
||||
TTileSetCM32 *cm32Tiles = dynamic_cast<TTileSetCM32 *>(tiles);
|
||||
TTileSetFullColor *fullColorTiles = dynamic_cast<TTileSetFullColor *>(tiles);
|
||||
if (cm32Tiles) {
|
||||
|
|
Loading…
Reference in a new issue