Blob Blame History Raw
From dd2f74e8a695449bc80a606b73c80ed023ebff0d Mon Sep 17 00:00:00 2001
From: Miklos Vajna <vmiklos@collabora.co.uk>
Date: Fri, 6 Nov 2015 13:30:54 +0100
Subject: [PATCH 284/398] sw lok annotations: disable the scrollbar for now

Change-Id: I7493eaab55c23c79ca0878c34a97dfb4af857260
(cherry picked from commit 8fc6aafcb4769271bc7b208e9b9b430b875b6104)
---
 sw/source/uibase/docvw/SidebarWin.cxx | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
index 1d0374b7f92d..038bdb243e65 100644
--- a/sw/source/uibase/docvw/SidebarWin.cxx
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
@@ -247,6 +247,12 @@ void SwSidebarWin::PaintTile(vcl::RenderContext& rRenderContext, const Rectangle
     for (sal_uInt16 i = 0; i < GetChildCount(); ++i)
     {
         vcl::Window* pChild = GetChild(i);
+
+        // This would at the moment just draw a gray rectangle at the top right
+        // corner, need to sort out later.
+        if (pChild == mpVScrollbar.get())
+            continue;
+
         rRenderContext.Push(PushFlags::MAPMODE);
         Point aOffset(PixelToLogic(pChild->GetPosPixel()));
         MapMode aMapMode(rRenderContext.GetMapMode());
-- 
2.12.0