Porting update.
git-svn-id: svn://svn.code.sf.net/p/itextsharp/code/trunk@22 820d3149-562b-4f88-9aa4-a8e61a3485cfmaster
parent
a8cf4120eb
commit
ed736f53d1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue