Fix bug undoing/redoing pixel movements with several mask movements

If we call updateDocumentMask() in this point, we'll leave a
sequence of cmds: SetMask(old mask, new mask) -> ClearMask(new mask)
And we need the opposite: ClearMask(old mask) -> SetMask(old mask, new mask)

This bug was introduced in 35229e99a6196d71b90ef2762abb32b0a164f594
This commit is contained in:
David Capello 2015-08-13 20:45:44 -03:00
parent 617284b518
commit e0020d36f2

View File

@ -88,9 +88,7 @@ PixelsMovement::PixelsMovement(
// and its owner could destroy our new "extra cel".
ASSERT(!m_document->getExtraCel());
redrawExtraImage();
redrawCurrentMask();
updateDocumentMask();
}
PixelsMovement::~PixelsMovement()