diff options
-rw-r--r-- | sd/source/ui/view/drviews5.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviews5.cxx b/sd/source/ui/view/drviews5.cxx index 110e7756225f..d632d24a46d0 100644 --- a/sd/source/ui/view/drviews5.cxx +++ b/sd/source/ui/view/drviews5.cxx @@ -49,11 +49,13 @@ #include <Client.hxx> #include <slideshow.hxx> #include <unokywds.hxx> +#include <sdpage.hxx> #include <SdUnoDrawView.hxx> #include <ViewShellBase.hxx> #include <FormShellManager.hxx> #include <DrawController.hxx> #include <memory> +#include <comphelper/lok.hxx> namespace sd { @@ -336,6 +338,12 @@ void DrawViewShell::WriteFrameViewData() Size aVisSizePixel = GetActiveWindow()->GetOutputSizePixel(); ::tools::Rectangle aVisArea = GetActiveWindow()->PixelToLogic( ::tools::Rectangle( Point(0,0), aVisSizePixel) ); + if (comphelper::LibreOfficeKit::isActive()) + { + // aVisArea is nonsensical in the LOK case, use the slide size + aVisArea = ::tools::Rectangle(Point(), getCurrentPage()->GetSize()); + } + mpFrameView->SetVisArea(aVisArea); if( mePageKind == PageKind::Handout ) |