summaryrefslogtreecommitdiff
path: root/sw/source/uibase/wrtsh
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-11-11 18:08:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-12 07:37:38 +0100
commit1397a1c8e4995b0dd336478e564880fe8ad91d1d (patch)
tree41a4cf915bb52d453e6eb5a57c15b8718d847874 /sw/source/uibase/wrtsh
parent48b667a7e7d25f835f95df89162a7849d6972531 (diff)
remove BigInt::operator tools::Long()
which was introduced in commit adf0738d2dbfa742d0e9ef130954fb4638a8e90d Author: Noel Grandin <noel.grandin@collabora.co.uk> Date: Wed Jan 3 14:25:15 2018 +0200 long->sal_Int32 in BigInt presumably to make the conversion easier. Instead just fix the call-sites to select a better conversion, BigInt only returns 32-bits of precision anyway. Change-Id: I2e4354bcfded01763fe3312a715ef37800297876 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105602 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/wrtsh')
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index bf2ca8b88e3d..1e2ec7522411 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -337,13 +337,13 @@ void SwWrtShell::Insert( const OUString &rPath, const OUString &rFilter,
if( aGrfSize.Width() > aBound.Width() )
{
aGrfSize.setWidth( aBound.Width() );
- aGrfSize.setHeight( BigInt(aBound.Width()) * aTempHeight / aTempWidth );
+ aGrfSize.setHeight( sal_Int32(BigInt(aBound.Width()) * aTempHeight / aTempWidth) );
}
// Fit height if necessary, scale down the width proportional thereafter.
if( aGrfSize.Height() > aBound.Height() )
{
aGrfSize.setHeight( aBound.Height() );
- aGrfSize.setWidth( BigInt(aBound.Height()) * aTempWidth / aTempHeight );
+ aGrfSize.setWidth( sal_Int32(BigInt(aBound.Height()) * aTempWidth / aTempHeight) );
}
pFrameMgr->SetSize( aGrfSize );
pFrameMgr->UpdateFlyFrame();