From 424665d03834bf9e4044efec713c97b70ebb1879 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Sat, 2 Mar 2019 00:29:18 +0300 Subject: [PATCH] Band marker has been fixed --- limereport/lrbanddesignintf.cpp | 3 +-- limereport/lrpageitemdesignintf.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/limereport/lrbanddesignintf.cpp b/limereport/lrbanddesignintf.cpp index 37f14d4..61f6b0a 100644 --- a/limereport/lrbanddesignintf.cpp +++ b/limereport/lrbanddesignintf.cpp @@ -775,8 +775,7 @@ BandDesignIntf* BandDesignIntf::findParentBand() void BandDesignIntf::updateBandMarkerGeometry() { if (parentItem() && m_bandMarker){ - QPointF sp = parentItem()->mapToScene(pos()); - m_bandMarker->setPos((sp.x()-m_bandMarker->boundingRect().width()),sp.y()); + m_bandMarker->setPos(pos().x()-m_bandMarker->width(),pos().y()); m_bandMarker->setHeight(rect().height()); } } diff --git a/limereport/lrpageitemdesignintf.cpp b/limereport/lrpageitemdesignintf.cpp index d0f949e..b0cdff8 100644 --- a/limereport/lrpageitemdesignintf.cpp +++ b/limereport/lrpageitemdesignintf.cpp @@ -479,7 +479,7 @@ void PageItemDesignIntf::relocateBands() { if (isLoading()) return; - int bandSpace = (itemMode() & DesignMode)?0:0; + int bandSpace = 0; QVector posByColumn;