This is an automated email from the ASF dual-hosted git repository.
pjfanning pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git
The following commit(s) were added to refs/heads/trunk by this push:
new a717c007ef Update PathGradientPaint.java
a717c007ef is described below
commit a717c007ef34b4f41699ace20642cbbf0cfb21bc
Author: PJ Fanning <[email protected]>
AuthorDate: Wed May 27 16:53:46 2026 +0100
Update PathGradientPaint.java
---
poi/src/main/java/org/apache/poi/sl/draw/PathGradientPaint.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/poi/src/main/java/org/apache/poi/sl/draw/PathGradientPaint.java
b/poi/src/main/java/org/apache/poi/sl/draw/PathGradientPaint.java
index 3fd296b477..a3fbfec096 100644
--- a/poi/src/main/java/org/apache/poi/sl/draw/PathGradientPaint.java
+++ b/poi/src/main/java/org/apache/poi/sl/draw/PathGradientPaint.java
@@ -150,8 +150,8 @@ public class PathGradientPaint implements Paint {
Rectangle2D.intersect(childRect, deviceBounds, destRect);
int dx =
MathUtil.safeDoubleToInt(destRect.getX()-deviceBounds.getX());
int dy =
MathUtil.safeDoubleToInt(destRect.getY()-deviceBounds.getY());
- int dw = MathUtil.safeDoubleToInt(destRect.getWidth();
- int dh = MathUtil.safeDoubleToInt(destRect.getHeight();
+ int dw = MathUtil.safeDoubleToInt(destRect.getWidth());
+ int dh = MathUtil.safeDoubleToInt(destRect.getHeight());
Object data = raster.getDataElements(dx, dy, dw, dh, null);
dx = MathUtil.safeDoubleToInt(destRect.getX()-childRect.getX());
dy = MathUtil.safeDoubleToInt(destRect.getY()-childRect.getY());
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]