Fix bug moving a cel, flattening all layers, and then undoing (fix #3416)

The m_boundsF position read from doc::read_celdata() was overwritting
the position of the cel when it was restored from the undo
information.
This commit is contained in:
David Capello 2022-07-11 10:24:43 -03:00
parent 62c052dd40
commit 9a3958278b

View File

@ -34,6 +34,8 @@ namespace doc {
void setPosition(const gfx::Point& pos) {
m_bounds.setOrigin(pos);
if (m_boundsF)
m_boundsF->setOrigin(gfx::PointF(pos));
}
void setOpacity(int opacity) {