diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-19 15:17:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-20 08:04:35 +0200 |
commit | b225980d2d65694278c9ed89512fbe21b08febd6 (patch) | |
tree | acd7e008fdabbed097fd97f6c4ba8ddc366946bb /sc/source/ui/view/drawvie4.cxx | |
parent | 6eefea359fe1e51adfd4a2002614013a7c060a33 (diff) |
use tools::Long in sc
Change-Id: I8f37a8d1174ed816df971b8cee036d4e88d4a7fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104526
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/drawvie4.cxx')
-rw-r--r-- | sc/source/ui/view/drawvie4.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/view/drawvie4.cxx b/sc/source/ui/view/drawvie4.cxx index 3584e270e3be..bce240b10b12 100644 --- a/sc/source/ui/view/drawvie4.cxx +++ b/sc/source/ui/view/drawvie4.cxx @@ -434,7 +434,7 @@ void ScDrawView::SetMarkedOriginalSize() std::unique_ptr<SdrUndoGroup> pUndoGroup(new SdrUndoGroup(*GetModel())); const SdrMarkList& rMarkList = GetMarkedObjectList(); - long nDone = 0; + tools::Long nDone = 0; const size_t nCount = rMarkList.GetMarkCount(); for (size_t i=0; i<nCount; ++i) { @@ -553,10 +553,10 @@ void ScDrawView::FitToCellSize() // For graphic objects, we want to keep the aspect ratio if (pObj->shouldKeepAspectRatio()) { - long nWidth = aGraphicRect.GetWidth(); + tools::Long nWidth = aGraphicRect.GetWidth(); assert(nWidth && "div-by-zero"); double fScaleX = static_cast<double>(aCellRect.GetWidth()) / static_cast<double>(nWidth); - long nHeight = aGraphicRect.GetHeight(); + tools::Long nHeight = aGraphicRect.GetHeight(); assert(nHeight && "div-by-zero"); double fScaleY = static_cast<double>(aCellRect.GetHeight()) / static_cast<double>(nHeight); double fScaleMin = std::min(fScaleX, fScaleY); |