Fixed a problem with setNoWrap(true) in combination with setRotation(180)

git-svn-id: svn://svn.code.sf.net/p/itextsharp/code/trunk@8 820d3149-562b-4f88-9aa4-a8e61a3485cf
master
psoares33 2008-07-20 18:56:27 +00:00
parent 4dd7df176f
commit a307572026
1 changed files with 640 additions and 630 deletions

View File

@ -457,10 +457,20 @@ namespace iTextSharp.text.pdf {
leftLimit -= 10000;
break;
case Element.ALIGN_RIGHT:
if (cell.Rotation == 180) {
rightLimit += 20000;
}
else {
leftLimit -= 20000;
}
break;
default:
if (cell.Rotation == 180) {
leftLimit -= 20000;
}
else {
rightLimit += 20000;
}
break;
}
}