This commit is contained in:
roc+%cs.cmu.edu 2007-05-09 00:45:21 +00:00
Родитель e0bc2aa97c
Коммит 5fd04b1134
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1359,7 +1359,12 @@ nsSVGGlyphFrame::GetTextRun(gfxContext *aCtx, const nsString &aText)
if (!mFontGroup)
return nsnull;
return mFontGroup->MakeTextRun(aText.get(), aText.Length(), &params, 0);
PRUnichar* text = new PRUnichar[aText.Length()];
if (!text)
return nsnull;
memcpy(text, aText.get(), sizeof(PRUnichar)*aText.Length());
return mFontGroup->MakeTextRun(text, aText.Length(), &params, 0);
}
//----------------------------------------------------------------------