Reverse the y offsets returned by ScriptPlace(). Bug 361782, r=pavlov

This commit is contained in:
smontagu%smontagu.org 2006-12-04 07:23:12 +00:00
Родитель f643825268
Коммит d231c61f34
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1172,7 +1172,7 @@ public:
for (PRInt32 k = 0; k < mNumGlyphs; k++) { for (PRInt32 k = 0; k < mNumGlyphs; k++) {
cglyphs[k].index = mGlyphs[k]; cglyphs[k].index = mGlyphs[k];
cglyphs[k].x = pt.x + offset + (mOffsets[k].du * cairoToPixels); cglyphs[k].x = pt.x + offset + (mOffsets[k].du * cairoToPixels);
cglyphs[k].y = pt.y + (mOffsets[k].dv * cairoToPixels); cglyphs[k].y = pt.y + (mOffsets[k].dv * cairoToPixels * -1);
if (!mSpacing->IsEmpty() && mSpacing->Length() >= mNumGlyphs) { if (!mSpacing->IsEmpty() && mSpacing->Length() >= mNumGlyphs) {
// XXX We need to convert char index to cluster index. // XXX We need to convert char index to cluster index.