[ 
https://issues.apache.org/jira/browse/FOP-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13899162#comment-13899162
 ] 

Robert Meyer edited comment on FOP-2341 at 2/12/14 3:57 PM:
------------------------------------------------------------

I've uploaded a patch of a potential fix. It simply ensures that the previous 
step font size is not the same as the current to prevent it endlessly cycling. 
Alternatively I think this check could be placed in the while(..) definition. 
I've tested it and it seems to work fine.

[EDIT] I'll give it a couple of days in case anyone else has any suggestions. 
If not I'll go ahead and commit.


was (Author: rmeyer):
I've uploaded a patch of a potential fix. It simply ensures that the previous 
step font size is not the same as the current to prevent it endlessly cycling. 
Alternatively I think this check could be placed in the while(..) definition. 
I've tested it and it seems to work fine.

> Infinite loop when "smaller" used with a zero length font-size 
> ---------------------------------------------------------------
>
>                 Key: FOP-2341
>                 URL: https://issues.apache.org/jira/browse/FOP-2341
>             Project: Fop
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 0.95, trunk
>            Reporter: MOHD
>            Priority: Critical
>              Labels: font-size, infinite-loop, smaller
>         Attachments: _test.fo, patch.diff
>
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> My local FOP engine is hang when below scenario was occur.
>  <fo:block font-style="normal" font-size="10mmpt" role="html:div">
>     <fo:inline baseline-shift="super" font-size="smaller" 
> role="html:sup">th</fo:inline>of each month. 
>   </fo:block>
> Please give some suggestion if any one has solution for this issue.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to