diff options
-rw-r--r-- | sc/source/ui/view/tabvwsh2.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sc/source/ui/view/tabvwsh2.cxx b/sc/source/ui/view/tabvwsh2.cxx index da77a4278655..ea2fa4cdf34b 100644 --- a/sc/source/ui/view/tabvwsh2.cxx +++ b/sc/source/ui/view/tabvwsh2.cxx @@ -19,7 +19,6 @@ #include <comphelper/lok.hxx> #include <sfx2/bindings.hxx> -#include <sfx2/lokhelper.hxx> #include <sfx2/viewfrm.hxx> #include <svl/whiter.hxx> #include <unotools/moduleoptions.hxx> @@ -321,7 +320,6 @@ void ScTabViewShell::ExecDraw(SfxRequest& rReq) // calc position and size bool bLOKIsActive = comphelper::LibreOfficeKit::isActive(); - bool bIsMobile = comphelper::LibreOfficeKit::isMobile(SfxLokHelper::getView()); Point aInsertPos; if(!bLOKIsActive) { @@ -330,7 +328,7 @@ void ScTabViewShell::ExecDraw(SfxRequest& rReq) aInsertPos.AdjustX( -sal_Int32(nDefaultObjectSizeWidth / 2) ); aInsertPos.AdjustY( -sal_Int32(nDefaultObjectSizeHeight / 2) ); } - else if (bIsMobile) + else { aInsertPos = GetViewData().getLOKVisibleArea().Center(); @@ -340,10 +338,6 @@ void ScTabViewShell::ExecDraw(SfxRequest& rReq) aInsertPos.AdjustX( -sal_Int32(nDefaultObjectSizeWidth / 2) ); aInsertPos.AdjustY( -sal_Int32(nDefaultObjectSizeHeight / 2) ); } - else - { - aInsertPos = GetInsertPos(); - } tools::Rectangle aNewObjectRectangle(aInsertPos, Size(nDefaultObjectSizeWidth, nDefaultObjectSizeHeight)); |