Fix #35 'Undo' after applying of Horizontal Layout breaks the movement logic

This commit is contained in:
Arin Alexander 2016-06-01 19:54:10 +04:00
parent d1f33e095b
commit 17ca1d142f

View File

@ -2047,6 +2047,8 @@ void InsertHLayoutCommand::undoIt()
bi->setParentItem(parent); bi->setParentItem(parent);
bi->setParent(parent); bi->setParent(parent);
bi->setPos(m_elements.value(bi->objectName())); bi->setPos(m_elements.value(bi->objectName()));
bi->setFixedPos(false);
bi->setPosibleResizeDirectionFlags(BaseDesignIntf::AllDirections);
} }
} }
page()->removeReportItem(layout,false); page()->removeReportItem(layout,false);