Ok.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Kniest, Andreas [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, October 16, 2003 10:09
> To:   '[EMAIL PROTECTED]'
> Subject:      [iText-questions] Bug in Class Cell Method setNoWrap
> 
> Hi,
> 
> I've encountered a problem (again) with wrap/nowrap in Cells in a Pdf. You
> changed some things, so the maximum lines in a cell could be set, very
> nice.
> Unfortunality you maked a mistake in the method Cell.setNoWrap in that
> way,
> that there always the maxLines is set to 1, even if the wrapping is set to
> false. But in that case, maxLines should be the defaultValue, normaly
> Integer.MAX_VALUE.
> 
> I changed the method like this and it work now correct for me.
> 
> /**
>  * Set nowrap.
>  *
>  * @param     value   the new value
>  */
> 
>       public void setNoWrap(boolean value) {
>                 if (value) {
>                   maxLines = 1;
>                 }
>                 else {
>                   maxLines = Integer.MAX_VALUE;
>                 }
>       }
> 
> Maybe you could think of implementing this to the standard iText in the
> next
> release. Thank you.
> 
> Greetings
> Andreas Kniest
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to