Blame SOURCES/0300-This-PixelToLogic-call-can-be-conditional-in-SwSideb.patch

f325b2
From d2d19cf40a111c588489876038cb5e5c23908175 Mon Sep 17 00:00:00 2001
f325b2
From: Miklos Vajna <vmiklos@collabora.co.uk>
f325b2
Date: Tue, 10 Nov 2015 20:08:49 +0100
f325b2
Subject: [PATCH 300/398] This PixelToLogic() call can be conditional in
f325b2
 SwSidebarWin::SetPosAndSize()
f325b2
f325b2
It is only needed when tiled rendering.
f325b2
f325b2
Change-Id: Ie1668f5f3d4d17abc212e2262a6c155dcb855d2e
f325b2
(cherry picked from commit 88f4866803fc766503292252cb36af4a70ea98fd)
f325b2
---
f325b2
 sw/source/uibase/docvw/SidebarWin.cxx | 14 +++++++-------
f325b2
 1 file changed, 7 insertions(+), 7 deletions(-)
f325b2
f325b2
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
f325b2
index 4975513ffc34..202a96767a39 100644
f325b2
--- a/sw/source/uibase/docvw/SidebarWin.cxx
f325b2
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
f325b2
@@ -608,15 +608,15 @@ void SwSidebarWin::SetPosAndSize()
f325b2
 
f325b2
         // LOK has map mode disabled, and we still want to perform pixel ->
f325b2
         // twips conversion for the size of the line above the note.
f325b2
-        bool bEnableMapMode = comphelper::LibreOfficeKit::isActive() && !EditWin().IsMapModeEnabled();
f325b2
-        if (bEnableMapMode)
f325b2
+        if (comphelper::LibreOfficeKit::isActive() && !EditWin().IsMapModeEnabled())
f325b2
+        {
f325b2
             EditWin().EnableMapMode();
f325b2
-        Size aSize(aLineEnd.getX() - aLineStart.getX(), aLineEnd.getY() - aLineStart.getY());
f325b2
-        aSize = EditWin().PixelToLogic(aSize);
f325b2
-        aLineEnd = aLineStart;
f325b2
-        aLineEnd.Move(aSize.getWidth(), aSize.getHeight());
f325b2
-        if (bEnableMapMode)
f325b2
+            Size aSize(aLineEnd.getX() - aLineStart.getX(), aLineEnd.getY() - aLineStart.getY());
f325b2
+            aSize = EditWin().PixelToLogic(aSize);
f325b2
+            aLineEnd = aLineStart;
f325b2
+            aLineEnd.Move(aSize.getWidth(), aSize.getHeight());
f325b2
             EditWin().EnableMapMode(false);
f325b2
+        }
f325b2
 
f325b2
         if (!IsPreview())
f325b2
         {
f325b2
-- 
f325b2
2.12.0
f325b2