mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 16:44:39 +03:00
relocateBands function has been fixed
This commit is contained in:
parent
4143a5bb5f
commit
0c4786582f
@ -400,7 +400,7 @@ void PageItemDesignIntf::relocateBands()
|
||||
{
|
||||
if (isLoading()) return;
|
||||
|
||||
int bandSpace = (itemMode() & DesignMode)?4:0;
|
||||
int bandSpace = (itemMode() & DesignMode) ? 0 : 0;
|
||||
|
||||
QVector<qreal> posByColumn;
|
||||
|
||||
@ -443,8 +443,8 @@ void PageItemDesignIntf::relocateBands()
|
||||
m_bands[i+1]->setPos(pageRect().x(),posByColumn[0]);
|
||||
posByColumn[0] += m_bands[i+1]->height()+bandSpace;
|
||||
} else {
|
||||
m_bands[i+1]->setPos(pageRect().x(),posByColumn[0]+2);
|
||||
posByColumn[0] += m_bands[i+1]->height()+bandSpace+2;
|
||||
m_bands[i+1]->setPos(pageRect().x(),posByColumn[0]);
|
||||
posByColumn[0] += m_bands[i+1]->height()+bandSpace;
|
||||
}
|
||||
} else {
|
||||
m_bands[i+1]->setPos(m_bands[i+1]->pos().x(),posByColumn[m_bands[i+1]->columnIndex()]);
|
||||
|
Loading…
Reference in New Issue
Block a user