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:
parent
5b8fc69800
commit
bfe06f5a39
@ -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()]);
|
||||||
|
Loading…
Reference in New Issue
Block a user