incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Alexandre Ferreira Leite (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ODFTOOLKIT-349) Setting red color gets the text stricken
Date Wed, 04 Dec 2013 01:12:35 GMT

    [ https://issues.apache.org/jira/browse/ODFTOOLKIT-349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13838440#comment-13838440
] 

Leonardo Alexandre Ferreira Leite commented on ODFTOOLKIT-349:
--------------------------------------------------------------

Hi,

i debugged the CellStyleHandler.getFont() method and i figured out that the used style, returned
by getCellDefaultStyle, has font size equals zero.
It seems to me that makes no sense any default style with font size equals zero. 

So a possible solution, i hope the better one, is to change the CellDefaultStyle. Other quicker
workarounds would be possible by editing CellStyleHandler.getFont(), such as changing the
initial definition of the font variable. 

I know the CellDefaultStyle is retrieved from the OdfOfficeStyles.mDefaultStyles map, but
it is hard to find where this style is built.

am i in the right way? someone could help me by telling me about where default styles are
defined?

tks


> Setting red color gets the text stricken
> ----------------------------------------
>
>                 Key: ODFTOOLKIT-349
>                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-349
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: simple api
>    Affects Versions: 0.7-incubating
>         Environment: Ubuntu 12.05, Open JDK 6
>            Reporter: Leonardo Alexandre Ferreira Leite
>            Priority: Minor
>
> The following excerpt should make the font color become red, but the font color gets
black (as it already was) and the text get stricken! 
>  Cell cell = table.getCellByPosition(col+l);
>  Font font = cell.getFont();
>  font.setColor(Color.RED);
>  cell.setFont(font);



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message