tdf#114441: Convert use of sal_uLong into better integer types
Change-Id: Ic564411644f9021825f8523af3ec1505352187bb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131948 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
committed by
Michael Weghorn
parent
652772ee4e
commit
86fac2109d
@@ -637,14 +637,14 @@ tools::Rectangle EditEngine::GetParaBounds( sal_Int32 nPara )
|
||||
{
|
||||
sal_Int32 nTextHeight = pImpEditEngine->GetTextHeight();
|
||||
sal_Int32 nParaWidth = pImpEditEngine->CalcParaWidth( nPara, true );
|
||||
sal_uLong nParaHeight = pImpEditEngine->GetParaHeight( nPara );
|
||||
sal_Int32 nParaHeight = pImpEditEngine->GetParaHeight( nPara );
|
||||
|
||||
return tools::Rectangle( nTextHeight - aPnt.Y() - nParaHeight, 0, nTextHeight - aPnt.Y(), nParaWidth );
|
||||
}
|
||||
else
|
||||
{
|
||||
sal_Int32 nParaWidth = pImpEditEngine->CalcParaWidth( nPara, true );
|
||||
sal_uLong nParaHeight = pImpEditEngine->GetParaHeight( nPara );
|
||||
sal_Int32 nParaHeight = pImpEditEngine->GetParaHeight( nPara );
|
||||
|
||||
return tools::Rectangle( 0, aPnt.Y(), nParaWidth, aPnt.Y() + nParaHeight );
|
||||
}
|
||||
|
||||
@@ -308,8 +308,8 @@ ErrCode ImpEditEngine::WriteRTF( SvStream& rOutput, EditSelection aSel )
|
||||
{
|
||||
SvxFontItem const*const pFontItem = static_cast<const SvxFontItem*>(pItem);
|
||||
bool bAlreadyExist = false;
|
||||
sal_uLong nTestMax = nScriptType ? aFontTable.size() : 1;
|
||||
for ( sal_uLong nTest = 0; !bAlreadyExist && ( nTest < nTestMax ); nTest++ )
|
||||
size_t nTestMax = nScriptType ? aFontTable.size() : 1;
|
||||
for ( size_t nTest = 0; !bAlreadyExist && ( nTest < nTestMax ); nTest++ )
|
||||
{
|
||||
bAlreadyExist = *aFontTable[ nTest ] == *pFontItem;
|
||||
}
|
||||
|
||||
@@ -846,7 +846,7 @@ vcl::Font Outliner::ImpCalcBulletFont( sal_Int32 nPara ) const
|
||||
GetGlobalCharStretching(nStretchX, nStretchY);
|
||||
|
||||
sal_uInt16 nScale = pFmt->GetBulletRelSize() * nStretchY / 100;
|
||||
sal_uLong nScaledLineHeight = aStdFont.GetFontSize().Height();
|
||||
tools::Long nScaledLineHeight = aStdFont.GetFontSize().Height();
|
||||
nScaledLineHeight *= nScale*10;
|
||||
nScaledLineHeight /= 1000;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user