diff options
Diffstat (limited to 'sw/source/uibase/docvw/SidebarWin.cxx')
-rw-r--r-- | sw/source/uibase/docvw/SidebarWin.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx index ba81a3e6f35a..c51fc570964e 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())); |