[Libreoffice-commits] core.git: sw/source
Miklos Vajna
vmiklos at collabora.co.uk
Thu Nov 19 05:58:30 PST 2015
sw/source/uibase/docvw/SidebarWin.cxx | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
New commits:
commit 8a1b9ac592c026de6c764277a6ad1f8db9a4a679
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Thu Nov 19 14:57:38 2015 +0100
sw lok comments: don't paint hidden comment sub-widgets
Change-Id: Ia513821b43729951c7b097fea498f0e22b9d10ea
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
index ba81a3e..c51fc57 100644
--- a/sw/source/uibase/docvw/SidebarWin.cxx
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
@@ -275,15 +275,13 @@ void SwSidebarWin::PaintTile(vcl::RenderContext& rRenderContext, const Rectangle
{
vcl::Window* pChild = GetChild(i);
- // This would at the moment just draw a gray rectangle at the top right
- // corner, need to sort out later.
- if (pChild == mpVScrollbar.get())
- continue;
-
// No point in showing this button till click on it are not handled.
if (pChild == mpMenuButton.get())
continue;
+ if (!pChild->IsVisible())
+ continue;
+
rRenderContext.Push(PushFlags::MAPMODE);
const Fraction& rFraction(mrView.GetWrtShellPtr()->GetOut()->GetMapMode().GetScaleY());
Point aOffset(PixelToLogic(pChild->GetPosPixel() * rFraction.GetDenominator() / rFraction.GetNumerator()));
More information about the Libreoffice-commits
mailing list