From c10a699d04d52e72dfb8aac270cf260863bedd77 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Mon, 16 Jul 2018 16:12:54 +0300 Subject: [PATCH] Columns placement has been fixed --- limereport/lrreportrender.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/limereport/lrreportrender.cpp b/limereport/lrreportrender.cpp index 1999c77..ad98b90 100644 --- a/limereport/lrreportrender.cpp +++ b/limereport/lrreportrender.cpp @@ -928,7 +928,7 @@ bool ReportRender::registerBand(BandDesignIntf *band, bool registerInChildren) m_maxHeightByColumn.append(m_maxHeightByColumn[0]); m_currentStartDataPos.append(m_currentStartDataPos[0]); } - m_currentColumn = 0; + m_currentColumn = -1; } @@ -936,7 +936,7 @@ bool ReportRender::registerBand(BandDesignIntf *band, bool registerInChildren) (!band->isHeader() || (band->bandNestingLevel() > 0 && band->columnsFillDirection() != BandDesignIntf::Horizontal ))){ if (band->columnsFillDirection() == BandDesignIntf::Horizontal){ - if (m_currentColumncolumnsCount()-1) + if (m_currentColumn < band->columnsCount()-1) m_currentColumn = m_currentColumn+1; else m_currentColumn = 0;