Blob Blame History Raw
From 4973a1ce9a3ee710f840fb39fb5e3a08f2f54005 Mon Sep 17 00:00:00 2001
From: Miklos Vajna <vmiklos@collabora.co.uk>
Date: Fri, 13 Nov 2015 14:51:13 +0100
Subject: [PATCH 325/398] sw lok: disable comment menu button for now

Change-Id: Ic052544b2835181652732b8de9eaf79572a9db6e
(cherry picked from commit 022c716fc89c7315a7c454c01e2fe70d5aece289)
---
 sw/source/uibase/docvw/SidebarWin.cxx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
index dd8d2a6003b9..47f5022e8044 100644
--- a/sw/source/uibase/docvw/SidebarWin.cxx
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
@@ -253,6 +253,10 @@ void SwSidebarWin::PaintTile(vcl::RenderContext& rRenderContext, const Rectangle
         if (pChild == mpVScrollbar.get())
             continue;
 
+        // No point in showing this button till click on it are not handled.
+        if (pChild == mpMenuButton.get())
+            continue;
+
         rRenderContext.Push(PushFlags::MAPMODE);
         Point aOffset(PixelToLogic(pChild->GetPosPixel()));
         MapMode aMapMode(rRenderContext.GetMapMode());
-- 
2.12.0