Bug 386920. Preserve line-break data when copying glyphs. r=pavlov

This commit is contained in:
roc+@cs.cmu.edu 2007-07-16 15:50:35 -07:00
parent 5d094d6109
commit 0e49e842e8

View File

@ -1639,7 +1639,7 @@ gfxTextRun::CopyGlyphDataFrom(gfxTextRun *aSource, PRUint32 aStart,
PRUint32 i;
for (i = 0; i < aLength; ++i) {
CompressedGlyph g = aSource->mCharacterGlyphs[i + aStart];
g.SetCanBreakBefore(PR_FALSE);
g.SetCanBreakBefore(mCharacterGlyphs[i + aDest].CanBreakBefore());
mCharacterGlyphs[i + aDest] = g;
if (aStealData) {
aSource->mCharacterGlyphs[i + aStart].SetMissing();