mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-20 06:30:03 +03:00
Band relocation has been changed
This commit is contained in:
@@ -396,8 +396,16 @@ void PageItemDesignIntf::relocateBands()
|
||||
m_bands[i+1]->columnsCount());
|
||||
}
|
||||
if (m_bands[i+1]->columnIndex()==0){
|
||||
m_bands[i+1]->setPos(pageRect().x(),posByColumn[0]);
|
||||
posByColumn[0] += m_bands[i+1]->height()+bandSpace;
|
||||
if ( ((m_bands[i]->borderLines() & BandDesignIntf::BottomLine) &&
|
||||
(m_bands[i+1]->borderLines() & BandDesignIntf::TopLine)) ||
|
||||
(!(m_bands[i]->borderLines() & BandDesignIntf::BottomLine) &&
|
||||
!(m_bands[i+1]->borderLines() & BandDesignIntf::TopLine)) ){
|
||||
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;
|
||||
}
|
||||
} else {
|
||||
m_bands[i+1]->setPos(m_bands[i+1]->pos().x(),posByColumn[m_bands[i+1]->columnIndex()]);
|
||||
posByColumn[m_bands[i+1]->columnIndex()] += m_bands[i+1]->height()+bandSpace;
|
||||
|
||||
Reference in New Issue
Block a user