Blame SOURCES/0346-sw-lok-comments-don-t-paint-hidden-comment-sub-widge.patch

135360
From 8891a0194cf213d05dd5bc96d24c20f5b224ca4f Mon Sep 17 00:00:00 2001
135360
From: Miklos Vajna <vmiklos@collabora.co.uk>
135360
Date: Thu, 19 Nov 2015 14:57:38 +0100
135360
Subject: [PATCH 346/398] sw lok comments: don't paint hidden comment
135360
 sub-widgets
135360
135360
Change-Id: Ia513821b43729951c7b097fea498f0e22b9d10ea
135360
(cherry picked from commit 8a1b9ac592c026de6c764277a6ad1f8db9a4a679)
135360
---
135360
 sw/source/uibase/docvw/SidebarWin.cxx | 8 +++-----
135360
 1 file changed, 3 insertions(+), 5 deletions(-)
135360
135360
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
135360
index 9d12a12eae35..5f6cfa7c4ae0 100644
135360
--- a/sw/source/uibase/docvw/SidebarWin.cxx
135360
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
135360
@@ -276,15 +276,13 @@ void SwSidebarWin::PaintTile(vcl::RenderContext& rRenderContext, const Rectangle
135360
     {
135360
         vcl::Window* pChild = GetChild(i);
135360
 
135360
-        // This would at the moment just draw a gray rectangle at the top right
135360
-        // corner, need to sort out later.
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
+        if (!pChild->IsVisible())
135360
+            continue;
135360
+
135360
         rRenderContext.Push(PushFlags::MAPMODE);
135360
         const Fraction& rFraction(mrView.GetWrtShellPtr()->GetOut()->GetMapMode().GetScaleY());
135360
         Point aOffset(PixelToLogic(pChild->GetPosPixel() * rFraction.GetDenominator() / rFraction.GetNumerator()));
135360
-- 
135360
2.12.0
135360