Kaydet (Commit) d7606a6a authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1242736 Unused value

unused since

commit 17714047
Date:   Wed May 22 06:40:48 2002 +0000
    #99282# CTL - Replaced GetGlyphBoundRect by GetTextBoundRect for drop caps

Change-Id: Ic2a5fdbb0c2f66268c60f86d6596d66ad24b7712
üst 8fa0cda0
......@@ -796,15 +796,12 @@ void SwDropCapCache::CalcFontSize( SwDropPortion* pDrop, SwTxtFormatInfo &rInf )
nIdx, pCurrPart->GetLen() ) &&
! aRect.IsEmpty();
}
if ( bHaveGlyphRect )
if (!bHaveGlyphRect)
{
FontMetric aWinMet( pWin->GetFontMetric() );
nAscent = (sal_uInt16) aWinMet.GetAscent();
}
else
// We do not have a window or our window could not
// give us glyph boundaries.
// We do not have a window or our window could not
// give us glyph boundaries.
aRect = Rectangle( Point( 0, 0 ), Size( 0, nAscent ) );
}
}
// Now we (hopefully) have a bounding rectangle for the
......
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