editeng/source/uno/unofored.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit d27991cc8770d98c8ec2c892dd88756b1089bd6b Author: Radhey Parekh <radhey.par...@gmail.com> AuthorDate: Mon Aug 23 21:23:24 2021 +0530 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Thu Aug 26 11:19:01 2021 +0200 tdf#114441 Convert use of sal_uLong to better int types Beacuse EditEngine::GetTextHeight() returns sal_uInt32, this type of int is chosen for the local variables nWidth, nHeight and nTextWidth Change-Id: I9288946b0cb7b9227fe63371840d6bfb84ab829e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120894 Reviewed-by: Hossein <hoss...@libreoffice.org> Reviewed-by: Michael Stahl <michael.st...@allotropia.de> Tested-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/editeng/source/uno/unofored.cxx b/editeng/source/uno/unofored.cxx index 114792e98073..9e8111c8c75a 100644 --- a/editeng/source/uno/unofored.cxx +++ b/editeng/source/uno/unofored.cxx @@ -338,8 +338,8 @@ tools::Rectangle SvxEditEngineForwarder::GetCharBounds( sal_Int32 nPara, sal_Int tools::Rectangle SvxEditEngineForwarder::GetParaBounds( sal_Int32 nPara ) const { const Point aPnt = rEditEngine.GetDocPosTopLeft( nPara ); - sal_uLong nWidth; - sal_uLong nHeight; + sal_uInt32 nWidth; + sal_uInt32 nHeight; if( rEditEngine.IsEffectivelyVertical() ) { @@ -348,7 +348,7 @@ tools::Rectangle SvxEditEngineForwarder::GetParaBounds( sal_Int32 nPara ) const // don't rotate. nWidth = rEditEngine.GetTextHeight( nPara ); nHeight = rEditEngine.GetTextHeight(); - sal_uLong nTextWidth = rEditEngine.GetTextHeight(); + sal_uInt32 nTextWidth = rEditEngine.GetTextHeight(); return tools::Rectangle( nTextWidth - aPnt.Y() - nWidth, 0, nTextWidth - aPnt.Y(), nHeight ); }