TableBuilder has been fixed

This commit is contained in:
Arin Alexander 2019-02-27 22:34:34 +03:00
parent 9bd392f4ac
commit 1c2aed14f4

View File

@ -1881,6 +1881,7 @@ QObject* TableBuilder::addRow()
checkBaseLayout(); checkBaseLayout();
if (m_baseLayout && m_patternLayout){ if (m_baseLayout && m_patternLayout){
HorizontalLayout* newRow = new HorizontalLayout(m_baseLayout, m_baseLayout); HorizontalLayout* newRow = new HorizontalLayout(m_baseLayout, m_baseLayout);
newRow->setLayoutSpacing(m_horizontalLayout->layoutSpacing());
for(int i = 0; i < m_horizontalLayout->childrenCount(); ++i){ for(int i = 0; i < m_horizontalLayout->childrenCount(); ++i){
BaseDesignIntf* item = dynamic_cast<BaseDesignIntf*>(m_patternLayout->at(i)); BaseDesignIntf* item = dynamic_cast<BaseDesignIntf*>(m_patternLayout->at(i));
BaseDesignIntf* cloneItem = item->cloneItem(item->itemMode(), newRow, newRow); BaseDesignIntf* cloneItem = item->cloneItem(item->itemMode(), newRow, newRow);