Part of fix for bug 359341 that somehow didn't make it in the first time. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@215289 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -94,11 +94,10 @@ nsFont *font;
|
||||
nsPoint *pointlist;
|
||||
|
||||
// Get the size of a pixel.
|
||||
nsIDeviceContext* deviceContext;
|
||||
aSurface->GetDeviceContext(deviceContext);
|
||||
nsCOMPtr<nsIDeviceContext> deviceContext;
|
||||
aSurface->GetDeviceContext(*getter_AddRefs(deviceContext));
|
||||
float p2t; // pixel to twips conversion
|
||||
p2t = deviceContext->DevUnitsToAppUnits();
|
||||
NS_RELEASE(deviceContext);
|
||||
|
||||
font = new nsFont("Times", NS_FONT_STYLE_NORMAL,NS_FONT_VARIANT_NORMAL,NS_FONT_WEIGHT_BOLD,0,12);
|
||||
aSurface->SetFont(*font);
|
||||
|
||||
Reference in New Issue
Block a user