Kaydet (Commit) a83de85d authored tarafından Michael Meeks's avatar Michael Meeks

remove un-necessary type punning.

Change-Id: I4f05929daa8b78b309d8a0498a2bb3246af9e18a
üst 3a091f8c
......@@ -641,6 +641,7 @@ void OutputDevice::InitFillColor()
void OutputDevice::ImplReleaseFonts()
{
mpGraphics->ReleaseFonts();
mbNewFont = true;
mbInitFont = true;
......
......@@ -2738,8 +2738,8 @@ bool OutputDevice::GetTextOutlines( ::basegfx::B2DPolyPolygonVector& rVector,
if (pSalLayout == 0)
return false;
long nWidth = pSalLayout->GetTextWidth();
long nHeight = ((OutputDevice*)&aVDev)->mpFontEntry->mnLineHeight + ((OutputDevice*)&aVDev)->mnEmphasisAscent
+ ((OutputDevice*)&aVDev)->mnEmphasisDescent;
long nHeight = aVDev->mpFontEntry->mnLineHeight + aVDev->mnEmphasisAscent +
aVDev->mnEmphasisDescent;
pSalLayout->Release();
if( !nWidth || !nHeight )
......@@ -2788,8 +2788,8 @@ bool OutputDevice::GetTextOutlines( ::basegfx::B2DPolyPolygonVector& rVector,
// draw glyph into virtual device
aVDev->Erase();
pSalLayout->DrawBase() += aOffset;
pSalLayout->DrawBase() += Point( ((OutputDevice*)&aVDev)->mnTextOffX, ((OutputDevice*)&aVDev)->mnTextOffY );
pSalLayout->DrawText( *((OutputDevice*)&aVDev)->mpGraphics );
pSalLayout->DrawBase() += Point( aVDev->mnTextOffX, aVDev->mnTextOffY );
pSalLayout->DrawText( *aVDev->mpGraphics );
pSalLayout->Release();
// convert character image into outline
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment