0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 00:33:02 +03:00

relocateBands function has been fixed

This commit is contained in:
Arin Alexander 2019-06-21 22:12:04 +03:00
parent 5b8fc69800
commit bfe06f5a39

View File

@ -400,7 +400,7 @@ void PageItemDesignIntf::relocateBands()
{ {
if (isLoading()) return; if (isLoading()) return;
int bandSpace = (itemMode() & DesignMode)?4:0; int bandSpace = (itemMode() & DesignMode) ? 0 : 0;
QVector<qreal> posByColumn; QVector<qreal> posByColumn;
@ -443,8 +443,8 @@ void PageItemDesignIntf::relocateBands()
m_bands[i+1]->setPos(pageRect().x(),posByColumn[0]); m_bands[i+1]->setPos(pageRect().x(),posByColumn[0]);
posByColumn[0] += m_bands[i+1]->height()+bandSpace; posByColumn[0] += m_bands[i+1]->height()+bandSpace;
} else { } else {
m_bands[i+1]->setPos(pageRect().x(),posByColumn[0]+2); m_bands[i+1]->setPos(pageRect().x(),posByColumn[0]);
posByColumn[0] += m_bands[i+1]->height()+bandSpace+2; posByColumn[0] += m_bands[i+1]->height()+bandSpace;
} }
} else { } else {
m_bands[i+1]->setPos(m_bands[i+1]->pos().x(),posByColumn[m_bands[i+1]->columnIndex()]); m_bands[i+1]->setPos(m_bands[i+1]->pos().x(),posByColumn[m_bands[i+1]->columnIndex()]);