You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2022/09/27 09:24:11 UTC
[Bug 66278] New: Bug with multiple gradient stops at the exact same location causing a rendering failure (AWT -> not enough colors in gradient)
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: dev@poi.apache.org
Reporter: gffloodg@amazon.co.uk
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 66278] Bug with multiple gradient stops at the exact same location causing a rendering failure (AWT -> not enough colors in gradient)
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66278
PJ Fanning <fa...@yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|5.3.x-dev |5.2.2-FINAL
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 66278] Bug with multiple gradient stops at the exact same location causing a rendering failure (AWT -> not enough colors in gradient)
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66278
PJ Fanning <fa...@yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 66278] Bug with multiple gradient stops at the exact same location causing a rendering failure (AWT -> not enough colors in gradient)
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66278
--- Comment #1 from PJ Fanning <fa...@yahoo.com> ---
Thanks - I merged the PR
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org