https://bz.apache.org/bugzilla/show_bug.cgi?id=66278
Bug ID: 66278
Summary: Bug with multiple gradient stops at the exact same
location causing a rendering failure (AWT -> not
enough colors in gradient)
Product: POI
Version: 5.3.x-dev
Hardware: PC
OS: Mac OS X 10.1
Status: NEW
Severity: normal
Priority: P2
Component: XSLF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
When rendering a shape with a gradient fill that contains 2 or more stops that
are at the exact same fractional position, the rendering will fail with the
following exception:
User must specify at least 2 colors: java.lang.IllegalArgumentException
java.lang.IllegalArgumentException: User must specify at least 2 colors at
java.awt.MultipleGradientPaint.<init>(MultipleGradientPaint.java:169) at
java.awt.LinearGradientPaint.<init>(LinearGradientPaint.java:286) at
java.awt.LinearGradientPaint.<init>(LinearGradientPaint.java:244) at
java.awt.LinearGradientPaint.<init>(LinearGradientPaint.java:211) at
org.apache.poi.sl.draw.DrawPaint.lambda$createLinearGradientPaint$1(DrawPaint.java:548)
at org.apache.poi.sl.draw.DrawPaint.safeFractions(DrawPaint.java:620) at
org.apache.poi.sl.draw.DrawPaint.createLinearGradientPaint(DrawPaint.java:548)
at org.apache.poi.sl.draw.DrawPaint.getGradientPaint(DrawPaint.java:244) at
org.apache.poi.sl.draw.DrawPaint.getPaint(DrawPaint.java:167) at
org.apache.poi.sl.draw.DrawPaint.getPaint(DrawPaint.java:157) at
org.apache.poi.sl.draw.DrawSimpleShape.getFillPaint(DrawSimpleShape.java:144)
at org.apache.poi.sl.draw.DrawSimpleShape.draw(DrawSimpleShape.java:70) at
org.apache.poi.sl.draw.DrawSheet.draw(DrawSheet.java:71) at
This issue is resolved by PR:
https://github.com/apache/poi/pull/385
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]