From 225e0f6c91fe53dc5db031f6be39c823360998da Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Fri, 25 Mar 2016 19:59:38 +0300 Subject: [PATCH] Fix: 64 bit building & band slice --- limereport/lrreportrender.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/limereport/lrreportrender.cpp b/limereport/lrreportrender.cpp index ac7d2f6..185c431 100644 --- a/limereport/lrreportrender.cpp +++ b/limereport/lrreportrender.cpp @@ -552,7 +552,7 @@ void ReportRender::popPageFooterGroupValues(BandDesignIntf *dataBand) // FIXME Probably coincidence Field and Variables if ((!m_popupedExpression.contains(dataBand))||(!m_popupedExpression.values(dataBand).contains(gf->data()))){ m_popupedExpression.insert(dataBand,gf->data()); - m_popupedValues.insert(QString::number((long)dataBand,16)+'|'+gf->data(), gf->values()[gf->values().count()-1]); + m_popupedValues.insert(QString("%1").arg((quintptr)dataBand)+'|'+gf->data(), gf->values()[gf->values().count()-1]); gf->values().pop_back(); } } @@ -568,7 +568,7 @@ void ReportRender::pushPageFooterGroupValues(BandDesignIntf *dataBand) if ((gf->dataBandName()==dataBand->objectName())){ // FIXME Probably coincidence Field and Variables if ((m_popupedExpression.contains(dataBand))&&(m_popupedExpression.values(dataBand).contains(gf->data()))){ - gf->values().push_back(m_popupedValues.value(QString::number((long)dataBand,16)+'|'+gf->data())); + gf->values().push_back(m_popupedValues.value(QString("%1").arg((quintptr)dataBand)+'|'+gf->data())); } } } @@ -743,7 +743,7 @@ BandDesignIntf* ReportRender::sliceBand(BandDesignIntf *band, BandDesignIntf* pa } } if (registerBand(band)) break; - } + } else break; } if (band->isEmpty()) { @@ -923,7 +923,8 @@ void ReportRender::checkLostHeadersOnPrevPage() it.toBack(); if (it.hasPrevious()) if (it.previous()->isFooter()) - it.previous(); + if (it.hasPrevious()) it.previous(); + else return; while (it.hasPrevious()){ if (it.value()->isHeader()){