Kaydet (Commit) 698ee302 authored tarafından Matteo Casalin's avatar Matteo Casalin

sal_uInt16 to more proper types

Change-Id: I2ad19b46825650f448f921e2bbc1b71ec6314be8
üst e510bd63
......@@ -297,7 +297,7 @@ void SwDropPortion::PaintDrop( const SwTxtPaintInfo &rInf ) const
const sal_uInt16 nOldWidth = Width();
const sal_uInt16 nOldAscent = GetAscent();
const SwTwips nOldPosY = rInf.Y();
const sal_uInt16 nOldPosX = (sal_uInt16)rInf.X();
const SwTwips nOldPosX = rInf.X();
const SwParaPortion *pPara = rInf.GetParaPortion();
const Point aOutPos( nOldPosX + nX, nOldPosY - pPara->GetAscent()
- pPara->GetRealHeight() + pPara->Height() );
......@@ -609,7 +609,7 @@ void SwTxtPainter::PaintDropPortion()
// MarginPortion und Adjustment!
const SwLinePortion *pPor = pCurr->GetFirstPortion();
sal_uInt16 nX = 0;
long nX = 0;
while( pPor && !pPor->IsDropPortion() )
{
nX = nX + pPor->Width();
......@@ -759,8 +759,7 @@ void SwDropCapCache::CalcFontSize( SwDropPortion* pDrop, SwTxtFormatInfo &rInf )
SwFont& rFnt = pCurrPart->GetFont();
// Get height including proportion
const sal_uInt16 nCurrHeight =
(sal_uInt16)rFnt.GetHeight( rFnt.GetActual() );
const long nCurrHeight = rFnt.GetHeight( rFnt.GetActual() );
// Get without proportion
const sal_uInt8 nOldProp = rFnt.GetPropr();
......
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