From fccf4a97fb4b17aed831b75d30c2202c59d91f01 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sat, 14 Oct 2023 14:47:34 +0000 Subject: [PATCH] add back leading len into slideshow DrawTextFragment height git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912967 13f79535-47bb-0310-9956-ffa450edef68 --- poi/src/main/java/org/apache/poi/sl/draw/DrawTextFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/sl/draw/DrawTextFragment.java b/poi/src/main/java/org/apache/poi/sl/draw/DrawTextFragment.java index e0e3bfe7d5..e89b8c779a 100644 --- a/poi/src/main/java/org/apache/poi/sl/draw/DrawTextFragment.java +++ b/poi/src/main/java/org/apache/poi/sl/draw/DrawTextFragment.java @@ -89,7 +89,7 @@ public class DrawTextFragment implements Drawable { * @return full height of this text run which is sum of ascent, descent and leading */ public float getHeight(){ - double h = layout.getAscent() + layout.getDescent(); + double h = layout.getAscent() + layout.getDescent() + getLeading(); return (float)h; } -- 2.39.5