Blame SOURCES/0325-sw-lok-disable-comment-menu-button-for-now.patch

f325b2
From 4973a1ce9a3ee710f840fb39fb5e3a08f2f54005 Mon Sep 17 00:00:00 2001
f325b2
From: Miklos Vajna <vmiklos@collabora.co.uk>
f325b2
Date: Fri, 13 Nov 2015 14:51:13 +0100
f325b2
Subject: [PATCH 325/398] sw lok: disable comment menu button for now
f325b2
f325b2
Change-Id: Ic052544b2835181652732b8de9eaf79572a9db6e
f325b2
(cherry picked from commit 022c716fc89c7315a7c454c01e2fe70d5aece289)
f325b2
---
f325b2
 sw/source/uibase/docvw/SidebarWin.cxx | 4 ++++
f325b2
 1 file changed, 4 insertions(+)
f325b2
f325b2
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
f325b2
index dd8d2a6003b9..47f5022e8044 100644
f325b2
--- a/sw/source/uibase/docvw/SidebarWin.cxx
f325b2
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
f325b2
@@ -253,6 +253,10 @@ void SwSidebarWin::PaintTile(vcl::RenderContext& rRenderContext, const Rectangle
f325b2
         if (pChild == mpVScrollbar.get())
f325b2
             continue;
f325b2
 
f325b2
+        // No point in showing this button till click on it are not handled.
f325b2
+        if (pChild == mpMenuButton.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