On Fri, Dec 03, 2010 at 12:17:43PM +0200, Klearchos Klearchou wrote: > 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.
That is a quick hack, and it might well have any side effects. Can you tell us your use case: Why do you want to process fo files with a soft hyphen after a white space or at the start of a block? I will try to find out how the factor can be -1; it should not. Simon --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org