Hello Simon,

Thank you for answering I was about to write a new mail.
I have changed the code at the class (org.apache.fop.traits.MinOptMax).

Here is the change:
    public MinOptMax mult(int factor) {
        if (factor < 0) {
                        factor = 0;
        }
                
                if (factor == 1) {
            return this;
        } else {
            return getInstance(min * factor, opt * factor, max * factor);
        }
    }

Basically instead of throwing an Exception I set the value to 0 and I let it
return the getInstance(min * factor, opt * factor, max * factor).

I am currently checking the code and it seems that the PDFs look ok and of
course there is no exception.

Could you please tell me if this could have any side-effect since I do not
have lot of experience with the FOP source.

Kind regards,
Klearchos




-----Original Message-----
From: Simon Pepping [mailto:[email protected]] 
Sent: Friday, December 03, 2010 12:14 PM
To: [email protected]
Subject: Re: Bug 49837 - Soft Hyphen

On Thu, Dec 02, 2010 at 07:12:08PM +0200, Klearchos Klearchou wrote:
> I have Fop version 0.95 and I am trying to upgrade to 1.0 but I have
> problems with the following regression bug (49837
> <https://issues.apache.org/bugzilla/show_bug.cgi?id=49837> ).
> 
> Is there any workaround for this?

The problem occurs when a soft-hyphen follows white-space or is the
first character in a block. You can work around it by avoiding those
situations. If you encounter the problem in other situations, please,
let us know.

Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to