Backport of subreport bugfix from version70 branch
Merge pull request #51 from thomas-willowit/version61

Backport of subreport bugfix from version70 branch