https://bz.apache.org/bugzilla/show_bug.cgi?id=66568
Bug ID: 66568 Summary: Incorrect font color chosen from master slide when font color is unspecified. Product: POI Version: 5.2.3-FINAL Hardware: Macintosh Status: NEW Severity: normal Priority: P2 Component: XSLF Assignee: dev@poi.apache.org Reporter: e...@canva.com Target Milestone: --- Attached is a PPTX file with a master slide and a slide with a paragraph text run set with no font color, but appears as cyan. The master slide contains a slide which has two text elements, one colored cyan and the other colored red. However when read by POI as follows: ``` var solidPaint = (PaintStyle.SolidPaint) textRun.getFontColor(); var solidColor = solidPaint.getSolidColor(); var color = solidColor.getColor(); ``` Expected behaviour: `color` is cyan, as that it what is rendered by PPTX. Observed behaviour: `color` is red. Steps to reproduce: 1. Download the attached zip file containing a Maven project, unzip the folder and `cd` into its directory. 2. Run `mvn install` and then `mvn exec:java`. 3. Observe the following: ``` Actual Color: java.awt.Color[r=255,g=0,b=0] Expected Color: java.awt.Color[r=0,g=255,b=255] ``` Proposed solution: POI searches for the correct element to obtain the color from when the color is missing. Thank you! Let us know if there is any additional information that would be of help. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org