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

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