kbrown / rpms / libreoffice

Forked from rpms/libreoffice 2 years ago
Clone

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

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