diff options
author | Radhey Parekh <radhey.parekh@gmail.com> | 2021-08-23 21:23:24 +0530 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-08-26 11:19:01 +0200 |
commit | d27991cc8770d98c8ec2c892dd88756b1089bd6b (patch) | |
tree | d4e3083615806508627451f738b56df377e2cda7 /editeng | |
parent | 2be207ed8969a96da8bdc0ffd7f2a2215233ee4a (diff) |
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 <hossein@libreoffice.org>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/uno/unofored.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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 ); } |