Closed 7ymekk closed 4 years ago
UseCase:
(I've put blue rectangles to hide sensitive data)
I noticed that following code fixes the issue but it seems to me like workaround and not the fix itself:
lrreportrender.cpp: ReportRender::renderBand if (mode==StartNewPageAsNeeded){ if (bandClone->columnsCount()>1 && (bandClone->columnsFillDirection()==BandDesignIntf::Vertical || bandClone->columnsFillDirection()==BandDesignIntf::VerticalUniform)) { startNewColumn(); if (patternBand->bandHeader() && patternBand->bandHeader()->columnsCount()>1 && !m_lostHeadersMoved && patternBand->bandNestingLevel() == 0 ){ renderBand(patternBand->bandHeader(), 0, mode); } } else { savePage(); startNewPage(); if (!bandIsSliced){ BandDesignIntf* t = renderData(patternBand); t->copyBookmarks(bandClone); t->setBackgroundColor(bandClone->backgroundColor()); //<----------------I ADDED THIS LINE patternBand->emitBandReRendered(bandClone, t); delete bandClone; bandClone = t; } }
The right solution, the new band have to take background color from bandClone. I have fixed it.
again: thanks for a quick response and fix :)
UseCase:
(I've put blue rectangles to hide sensitive data)
I noticed that following code fixes the issue but it seems to me like workaround and not the fix itself: