Author: tilman
Date: Tue Jun 18 09:44:09 2024
New Revision: 1918403

URL: http://svn.apache.org/viewvc?rev=1918403&view=rev
Log:
PDFBOX-5842: avoid 0 scales, as suggested by Timo Boehme

Modified:
    
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java

Modified: 
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
URL: 
http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java?rev=1918403&r1=1918402&r2=1918403&view=diff
==============================================================================
--- 
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
 (original)
+++ 
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
 Tue Jun 18 09:44:09 2024
@@ -1270,7 +1270,7 @@ public class PageDrawer extends PDFGraph
                 {
                     g.drawImage(mask, imageTransform, null);
                 }
-                else
+                else if (scaleX != 0 && scaleY != 0)
                 {
                     while (scaleX < 0.25 || Math.round(mask.getWidth() * 
scaleX) < 1)
                     {


Reply via email to