зеркало из https://github.com/mozilla/pjs.git
Fixing bustage
This commit is contained in:
Родитель
e0bc2aa97c
Коммит
5fd04b1134
|
@ -1359,7 +1359,12 @@ nsSVGGlyphFrame::GetTextRun(gfxContext *aCtx, const nsString &aText)
|
|||
if (!mFontGroup)
|
||||
return nsnull;
|
||||
|
||||
return mFontGroup->MakeTextRun(aText.get(), aText.Length(), ¶ms, 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(), ¶ms, 0);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
|
Загрузка…
Ссылка в новой задаче