]> source.dussan.org Git - poi.git/commitdiff
add back leading len into slideshow DrawTextFragment height
authorPJ Fanning <fanningpj@apache.org>
Sat, 14 Oct 2023 14:47:34 +0000 (14:47 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sat, 14 Oct 2023 14:47:34 +0000 (14:47 +0000)
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

index e0e3bfe7d5c04088b2160c2b9991a90c819fb4f1..e89b8c779a6f516a131225b3a9c77e07a7c02d0f 100644 (file)
@@ -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;
     }