The GetFont method of nsIFontMetrics takes a const pointer reference
as argument, so we must pass a const pointer reference to it. git-svn-id: svn://10.0.0.236/trunk@15681 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
f8d265ea3f
commit
2c8f8fff45
@ -903,7 +903,7 @@ nsRenderingContextGTK::DrawString(const char *aString, PRUint32 aLength,
|
||||
|
||||
if (mFontMetrics)
|
||||
{
|
||||
nsFont *font;
|
||||
const nsFont *font;
|
||||
mFontMetrics->GetFont(font);
|
||||
PRUint8 deco = font->decorations;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user