diff --git a/gfx/thebes/src/gfxTextRunWordCache.cpp b/gfx/thebes/src/gfxTextRunWordCache.cpp index 25b65285ec8..51b27ac431c 100644 --- a/gfx/thebes/src/gfxTextRunWordCache.cpp +++ b/gfx/thebes/src/gfxTextRunWordCache.cpp @@ -405,7 +405,7 @@ TextRunWordCache::FinishTextRun(gfxTextRun *aTextRun, gfxTextRun *aNewRun, // need to find out what the platform would do // if the marks were at the start of the text. tmpTextRun = aNewRun->GetFontGroup()->MakeTextRun( - aTextRun->GetTextUnicode(), length, aParams, + aTextRun->GetTextUnicode() + sourceOffset, length, aParams, aNewRun->GetFlags()); source = tmpTextRun; sourceOffset = 0;