Blob Blame History Raw
From ee7c4fb2c32e306342099896c0e367c9f2d33e75 Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Mon, 20 Mar 2017 17:51:53 +0100
Subject: [PATCH 308/398] fix build

Change-Id: I8770c05d39e5574212461d2e48e72ed2fff6a74d
---
 sw/source/uibase/docvw/SidebarWin.cxx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
index 87a86fbc9dc8..575be80c0ae0 100644
--- a/sw/source/uibase/docvw/SidebarWin.cxx
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
@@ -282,7 +282,7 @@ void SwSidebarWin::PaintTile(vcl::RenderContext& rRenderContext, const Rectangle
 
 vcl::Window* SwSidebarWin::IsHitWindow(const Point& rPointLogic)
 {
-    Rectangle aRectangleLogic(EditWin().PixelToLogic(GetPosPixel()), EditWin().PixelToLogic(GetSizePixel()));
+    Rectangle aRectangleLogic(EditWin()->PixelToLogic(GetPosPixel()), EditWin()->PixelToLogic(GetSizePixel()));
     if (aRectangleLogic.IsInside(rPointLogic))
         return mpSidebarTextControl;
     return 0;
@@ -616,14 +616,14 @@ void SwSidebarWin::SetPosAndSize()
 
         // LOK has map mode disabled, and we still want to perform pixel ->
         // twips conversion for the size of the line above the note.
-        if (comphelper::LibreOfficeKit::isActive() && !EditWin().IsMapModeEnabled())
+        if (comphelper::LibreOfficeKit::isActive() && !EditWin()->IsMapModeEnabled())
         {
-            EditWin().EnableMapMode();
+            EditWin()->EnableMapMode();
             Size aSize(aLineEnd.getX() - aLineStart.getX(), aLineEnd.getY() - aLineStart.getY());
-            aSize = EditWin().PixelToLogic(aSize);
+            aSize = EditWin()->PixelToLogic(aSize);
             aLineEnd = aLineStart;
             aLineEnd.Move(aSize.getWidth(), aSize.getHeight());
-            EditWin().EnableMapMode(false);
+            EditWin()->EnableMapMode(false);
         }
 
         if (!IsPreview())
-- 
2.12.0