Ed Leafe wrote:
> On Nov 14, 2007, at 5:36 PM, Carl Karsten wrote:
>
>> The designer opens, I see a sub second flash of the layout, then a
>> blank report
>> designer. the xml and preview tabs work fine. In the console is:
>
> The problem is the line:
>
> strokeColor = self._rw.getColorTupleFromReportLab(obj.getProp
> ("strokeColor"))
>
> I added some debugging, and obj.getProp("strokeColor") is returning
> None. Paul, any idea why this would happen? Is it safe to check for
> None, and if it returned, change it to (0,0,0)?
The report runs fine, so the problem isn't in report writer. The report
designer is having trouble displaying the design, however, which means
something in report designer isn't right.
I can't remember if there's special meaning for None values in colors.
None either means:
1) transparent
or
2) use the default
If 1, then we should avoid drawing the line in the designer. If 2, then
we should do as you suggest and use (0,0,0).
Sorry I just don't have time right now to delve into it. I'd say go
ahead with your fix, with comments.
--
pkm ~ http://paulmcnett.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]