Skip to content

Commit

Permalink
Fixed bug reported by @ZeerDonker
Browse files Browse the repository at this point in the history
  • Loading branch information
dhorions committed Jul 2, 2015
1 parent 4946753 commit 78ffbbd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main/java/be/quodlibet/boxable/BaseTable.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package be.quodlibet.boxable;

import java.io.IOException;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;

import java.io.IOException;

/**
* Created by dgautier on 3/18/2015.
*/
Expand All @@ -20,7 +19,10 @@ protected void loadFonts() {
}

@Override
protected PDPage createPage() {
return new PDPage();
protected PDPage createPage()
{
PDPage newPage = new PDPage();
getDocument().addPage(newPage);
return newPage;
}
}

0 comments on commit 78ffbbd

Please sign in to comment.