Porting update.

git-svn-id: svn://svn.code.sf.net/p/itextsharp/code/trunk@22 820d3149-562b-4f88-9aa4-a8e61a3485cf
master
psoares33 2009-06-04 09:45:59 +00:00
parent a8cf4120eb
commit ed736f53d1
1 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ namespace iTextSharp.text {
if (!font.IsStandardFont()) {
chunk.Font = font.Difference(chunk.Font);
}
if (hyphenation != null) {
if (hyphenation != null && chunk.GetHyphenation() == null && !chunk.IsEmpty()) {
chunk.SetHyphenation(hyphenation);
}
base.Insert(index, chunk);
@ -323,7 +323,7 @@ namespace iTextSharp.text {
}
Chunk newChunk = new Chunk(c, f);
newChunk.Attributes = chunk.Attributes;
if (newChunk.GetHyphenation() == null) {
if (hyphenation != null && newChunk.GetHyphenation() == null && !newChunk.IsEmpty()) {
newChunk.SetHyphenation(hyphenation);
}
base.Add(newChunk);