Fixed the error occurred during loading a report if the report contains data sources with identical names to data sources added by application

This commit is contained in:
Arin Alexander
2017-03-03 00:30:54 +03:00
parent f0d65970f9
commit ef712cca5f
2 changed files with 47 additions and 22 deletions

View File

@@ -407,7 +407,7 @@ BandDesignIntf* ReportRender::renderBand(BandDesignIntf *patternBand, BandDesign
bandClone->setBackgroundColor(
(datasources()->variable(QLatin1String("line_")+patternBand->objectName().toLower()).toInt()%2!=0 ?
(datasources()->variable(QLatin1String("line_")+patternBand->objectName().toLower()).toInt() %2 !=0 ?
bandClone->backgroundColor():
bandClone->alternateBackgroundColor()
)