summaryrefslogtreecommitdiff
path: root/sw/source/uibase/wrtsh/wrtsh1.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-19 15:18:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-20 08:04:53 +0200
commit1e822e401ea8fe950c7fb62172ac61d8396c98e9 (patch)
tree3a29227adfe1c5ec9209d7e7deb2035633104986 /sw/source/uibase/wrtsh/wrtsh1.cxx
parentb225980d2d65694278c9ed89512fbe21b08febd6 (diff)
use tools::Long in sw
Change-Id: I44be72b3a9b14823ec37a3c799cffb4fb4d6e1de Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104527 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/wrtsh/wrtsh1.cxx')
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index 69fad015bbde..5fb1b42f75d2 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -611,7 +611,7 @@ bool SwWrtShell::InsertOleObject( const svt::EmbeddedObjectRef& xRef, SwFlyFrame
// The current selected OLE object will be loaded with the
// verb into the server.
-void SwWrtShell::LaunchOLEObj( long nVerb )
+void SwWrtShell::LaunchOLEObj( tools::Long nVerb )
{
if ( GetCntType() != CNT_OLE ||
GetView().GetViewFrame()->GetFrame().IsInPlace() )
@@ -810,7 +810,7 @@ void SwWrtShell::CalcAndSetScale( svt::EmbeddedObjectRef& xObj,
aObjArea = GetAnyCurRect( CurRectType::FlyEmbeddedPrt, nullptr, xObj.GetObject() ).SSize();
// differ the aObjArea and _aVisArea by 1 Pixel then set new VisArea
- long nX, nY;
+ tools::Long nX, nY;
SwSelPaintRects::Get1PixelInLogic( *this, &nX, &nY );
if( !( _aVisArea.Width() - nX <= aObjArea.Width() &&
_aVisArea.Width() + nX >= aObjArea.Width() &&
@@ -863,8 +863,8 @@ void SwWrtShell::CalcAndSetScale( svt::EmbeddedObjectRef& xObj,
}
else
{
- aArea.Width ( long( aArea.Width() / pCli->GetScaleWidth() ) );
- aArea.Height( long( aArea.Height() / pCli->GetScaleHeight() ) );
+ aArea.Width ( tools::Long( aArea.Width() / pCli->GetScaleWidth() ) );
+ aArea.Height( tools::Long( aArea.Height() / pCli->GetScaleHeight() ) );
}
pCli->SetObjAreaAndScale( aArea.SVRect(), aScaleWidth, aScaleHeight );