0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-25 17:14:40 +03:00

Band marker has been fixed

This commit is contained in:
Arin Alexander 2019-03-02 00:29:18 +03:00
parent bf3e34677a
commit 424665d038
2 changed files with 2 additions and 3 deletions

View File

@ -775,8 +775,7 @@ BandDesignIntf* BandDesignIntf::findParentBand()
void BandDesignIntf::updateBandMarkerGeometry() void BandDesignIntf::updateBandMarkerGeometry()
{ {
if (parentItem() && m_bandMarker){ if (parentItem() && m_bandMarker){
QPointF sp = parentItem()->mapToScene(pos()); m_bandMarker->setPos(pos().x()-m_bandMarker->width(),pos().y());
m_bandMarker->setPos((sp.x()-m_bandMarker->boundingRect().width()),sp.y());
m_bandMarker->setHeight(rect().height()); m_bandMarker->setHeight(rect().height());
} }
} }

View File

@ -479,7 +479,7 @@ void PageItemDesignIntf::relocateBands()
{ {
if (isLoading()) return; if (isLoading()) return;
int bandSpace = (itemMode() & DesignMode)?0:0; int bandSpace = 0;
QVector<qreal> posByColumn; QVector<qreal> posByColumn;