Skip to content

Commit

Permalink
Fixes incorrect row height calculation
Browse files Browse the repository at this point in the history
From LibrePDF#260

Original issue LibrePDF#258
  • Loading branch information
albfernandez committed Oct 13, 2019
1 parent 2940da5 commit 0f8daad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openpdf/src/main/java/com/lowagie/text/pdf/PdfPRow.java
Original file line number Diff line number Diff line change
Expand Up @@ -606,10 +606,10 @@ public PdfPRow splitRow(PdfPTable table, int rowIndex, float new_height) {
else {
float y;
ColumnText ct = ColumnText.duplicate(cell.getColumn());
float left = cell.getLeft() + cell.getEffectivePaddingLeft();
float bottom = cell.getTop() + cell.getEffectivePaddingBottom() - newHeight;
float right = cell.getRight() - cell.getEffectivePaddingRight();
float left = cell.getLeft() + cell.getEffectivePaddingLeft();
float top = cell.getTop() - cell.getEffectivePaddingTop();
float bottom = top + cell.getEffectivePaddingBottom() - newHeight;
float right = cell.getRight() - cell.getEffectivePaddingRight();
switch (cell.getRotation()) {
case 90:
case 270:
Expand Down

0 comments on commit 0f8daad

Please sign in to comment.