You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by "jsaunders2011@gmail.com" <js...@gmail.com> on 2016/09/11 04:20:01 UTC

XSLFTextRun.getFontColor() returns wrong color

I'm seeing that XSLFTextRun.getFontColor() returns the wrong color in some instances. It will often return the color of a nearby element rather than the color of itself. Anybody know what would cause this and how to fix it?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Re: XSLFTextRun.getFontColor() returns wrong color

Posted by Javen O'Neal <ja...@gmail.com>.
While the code for getting the font color [1] from a text run is more
complicated than a one-line getter (it uses the master style color palate
if not defined locally), I didn't see anything indicating it would grab a
color from a nearby element.

Could you please open a bug on bugzilla [2] with a unit test and slideshow
that reproduces the problem?

[1]
https://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTextRun.java?revision=1749108&view=markup#l118
[2] https://bz.apache.org/bugzilla/buglist.cgi?component=XSLF&product=POI

On Sat, Sep 10, 2016 at 9:20 PM, jsaunders2011@gmail.com <
jsaunders2011@gmail.com> wrote:
> I'm seeing that XSLFTextRun.getFontColor() returns the wrong color in
some instances. It will often return the color of a nearby element rather
than the color of itself. Anybody know what would cause this and how to fix
it?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
> For additional commands, e-mail: dev-help@poi.apache.org
>