AndyDentFree / rbrw-core

Automatically exported from code.google.com/p/rbrw-core
1 stars 0 forks source link

Color changes in text persist and are wrongly applied #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
eg: run the Sample Report 7 - Columns with Header and Footer then run any other 
reports - the 
text will be rendered in red.

The text color change on the columns should only apply to that item

Original issue reported on code.google.com by dentaroo@gmail.com on 29 Mar 2009 at 11:45

GoogleCodeExporter commented 9 years ago
On reviewing the Sample more closely, the color changes are actually in the 
footer ReportDemoApp.AddFancyFooter not in the columnar body. See issue 10.

Original comment by dentaroo@gmail.com on 29 Mar 2009 at 11:48

GoogleCodeExporter commented 9 years ago
This was largely a misunderstanding of the way that textStyle works, which is 
unfortunate as it is an easy 
mistake and copy from OOFILE.

For any stylable element, textStyle returns the rbrwTextStyle that applies to 
it, be it from container or uniquely 
specified. To get a style to which you can assign values for just the current 
item, you need to use 
uniqueTextStyle - using that in ReportDemoApp.AddFancyFooter fixed most of the 
problems but, interestingly, 
if you run report 7 and then 8 - the "Statement" in 8 is is still drawn in red, 
so there's a deeper bug.

Original comment by dentaroo@gmail.com on 30 Mar 2009 at 2:39