aboutsummaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2023-10-14 14:47:34 +0000
committerPJ Fanning <fanningpj@apache.org>2023-10-14 14:47:34 +0000
commitfccf4a97fb4b17aed831b75d30c2202c59d91f01 (patch)
tree54aa7636f240717e0fa7d207cb27a3ad842fcc1e /poi
parentec099d769fdf0b9fd14880192e5c4637a221cb3e (diff)
downloadpoi-fccf4a97fb4b17aed831b75d30c2202c59d91f01.tar.gz
poi-fccf4a97fb4b17aed831b75d30c2202c59d91f01.zip
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
Diffstat (limited to 'poi')
-rw-r--r--poi/src/main/java/org/apache/poi/sl/draw/DrawTextFragment.java2
1 files changed, 1 insertions, 1 deletions
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;
}