diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-11-18 11:44:54 +0100 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-11-18 11:44:54 +0100 |
commit | 8da1a7bc8e87ce56ada419fc68baa5c18cd77cc3 (patch) | |
tree | 72d711bac5540475795549b59416c569625309b1 /pdf-over-gui/src | |
parent | eb7766f3265b2732ebd8cc4764fcdec213d68b61 (diff) | |
download | pdf-over-8da1a7bc8e87ce56ada419fc68baa5c18cd77cc3.tar.gz pdf-over-8da1a7bc8e87ce56ada419fc68baa5c18cd77cc3.tar.bz2 pdf-over-8da1a7bc8e87ce56ada419fc68baa5c18cd77cc3.zip |
also for new pages
Diffstat (limited to 'pdf-over-gui/src')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java index afc6b0db..a6f70ff0 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java @@ -273,8 +273,8 @@ public class SignaturePanel extends JPanel { // get the new image
if (newPage)
{
- int renderHeight = (int)(0.5 + this.scale(actualPageSize.getHeight(), U.PAGE_REL, U.IMAGE, Dim.X));
- int renderWidth = (int)(0.5 + this.scale(actualPageSize.getWidth(), U.PAGE_REL, U.IMAGE, Dim.Y));
+ int renderHeight = (int)(0.5 + this.scale(this.pageHeight, U.PAGE_REL, U.IMAGE, Dim.X));
+ int renderWidth = (int)(0.5 + this.scale(this.pageWidth, U.PAGE_REL, U.IMAGE, Dim.Y));
this.currentImage = new BufferedImage(renderWidth, renderHeight, BufferedImage.TYPE_INT_RGB);
Graphics g = this.currentImage.getGraphics();
g.setColor(Color.WHITE);
|