From: PJ Fanning Date: Sat, 14 Oct 2023 14:47:34 +0000 (+0000) Subject: add back leading len into slideshow DrawTextFragment height X-Git-Tag: REL_5_2_5~60 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fccf4a97fb4b17aed831b75d30c2202c59d91f01;p=poi.git 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 --- 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; }