diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-19 15:06:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-20 06:33:23 +0000 |
commit | c2b48a763df113e63e6a27ee05b9a6834e4e49a4 (patch) | |
tree | 9a0c2468b6fd36c6ac8104c88c82ebd8ddd82143 /svx/source/svdraw/svdograf.cxx | |
parent | 58072c5a7f409cd500ecdc4e81a8f536aa3dda59 (diff) |
loplugin:expandablemethodds in svx
Change-Id: I45447b6f5cf7e17d6e81e8c931b07b26d41b9a8c
Reviewed-on: https://gerrit.libreoffice.org/30057
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdograf.cxx')
-rw-r--r-- | svx/source/svdraw/svdograf.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index 6fdb0993e0f4..4ca13f6cedb6 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -534,11 +534,6 @@ bool SdrGrafObj::IsSwappedOut() const return mbIsPreview || pGraphic->IsSwappedOut(); } -bool SdrGrafObj::IsCropped() const -{ - return aGrafInfo.IsCropped(); -} - const MapMode& SdrGrafObj::GetGrafPrefMapMode() const { return pGraphic->GetPrefMapMode(); @@ -571,7 +566,7 @@ Size SdrGrafObj::getOriginalSize() const { Size aSize = GetGrafPrefSize(); - if (IsCropped()) + if (aGrafInfo.IsCropped()) { long aCroppedTop = OutputDevice::LogicToLogic( aGrafInfo.GetTopCrop(), GetModel()->GetScaleUnit(), GetGrafPrefMapMode().GetMapUnit()); long aCroppedBottom = OutputDevice::LogicToLogic( aGrafInfo.GetBottomCrop(), GetModel()->GetScaleUnit(), GetGrafPrefMapMode().GetMapUnit()); |