Author: rmeyer
Date: Mon Feb 17 09:59:17 2014
New Revision: 1568925
URL: http://svn.apache.org/r1568925
Log:
FOP-2341: Infinite loop when smaller used with a zero length font-size
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/FontSizePropertyMaker.java
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/FontSizePropertyMaker.java
URL:
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/FontSizePropertyMaker.java?rev=1568925&r1=1568924&r2=1568925&view=diff
==============================================================================
---
xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/FontSizePropertyMaker.java
(original)
+++
xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/FontSizePropertyMaker.java
Mon Feb 17 09:59:17 2014
@@ -105,6 +105,9 @@ public class FontSizePropertyMaker
// than the last caculated step
lastStepFontSize = nextStepFontSize;
nextStepFontSize = (int)Math.round(lastStepFontSize * scale);
+ if (nextStepFontSize == lastStepFontSize) {
+ break;
+ }
}
// baseFontSize is between last and next step font size
// Return the step value closer to the baseFontSize
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]