Blame SOURCES/0284-sw-lok-annotations-disable-the-scrollbar-for-now.patch

135360
From dd2f74e8a695449bc80a606b73c80ed023ebff0d Mon Sep 17 00:00:00 2001
135360
From: Miklos Vajna <vmiklos@collabora.co.uk>
135360
Date: Fri, 6 Nov 2015 13:30:54 +0100
135360
Subject: [PATCH 284/398] sw lok annotations: disable the scrollbar for now
135360
135360
Change-Id: I7493eaab55c23c79ca0878c34a97dfb4af857260
135360
(cherry picked from commit 8fc6aafcb4769271bc7b208e9b9b430b875b6104)
135360
---
135360
 sw/source/uibase/docvw/SidebarWin.cxx | 6 ++++++
135360
 1 file changed, 6 insertions(+)
135360
135360
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
135360
index 1d0374b7f92d..038bdb243e65 100644
135360
--- a/sw/source/uibase/docvw/SidebarWin.cxx
135360
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
135360
@@ -247,6 +247,12 @@ void SwSidebarWin::PaintTile(vcl::RenderContext& rRenderContext, const Rectangle
135360
     for (sal_uInt16 i = 0; i < GetChildCount(); ++i)
135360
     {
135360
         vcl::Window* pChild = GetChild(i);
135360
+
135360
+        // This would at the moment just draw a gray rectangle at the top right
135360
+        // corner, need to sort out later.
135360
+        if (pChild == mpVScrollbar.get())
135360
+            continue;
135360
+
135360
         rRenderContext.Push(PushFlags::MAPMODE);
135360
         Point aOffset(PixelToLogic(pChild->GetPosPixel()));
135360
         MapMode aMapMode(rRenderContext.GetMapMode());
135360
-- 
135360
2.12.0
135360