Kaydet (Commit) 9615d10f authored tarafından Miklos Vajna's avatar Miklos Vajna

sw lok comments: don't paint hidden comment sub-widgets

Change-Id: Ia513821b43729951c7b097fea498f0e22b9d10ea
(cherry picked from commit 8a1b9ac5)
üst 0cf8aa99
...@@ -275,15 +275,13 @@ void SwSidebarWin::PaintTile(vcl::RenderContext& rRenderContext, const Rectangle ...@@ -275,15 +275,13 @@ void SwSidebarWin::PaintTile(vcl::RenderContext& rRenderContext, const Rectangle
{ {
vcl::Window* pChild = GetChild(i); 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. // No point in showing this button till click on it are not handled.
if (pChild == mpMenuButton.get()) if (pChild == mpMenuButton.get())
continue; continue;
if (!pChild->IsVisible())
continue;
rRenderContext.Push(PushFlags::MAPMODE); rRenderContext.Push(PushFlags::MAPMODE);
const Fraction& rFraction(mrView.GetWrtShellPtr()->GetOut()->GetMapMode().GetScaleY()); const Fraction& rFraction(mrView.GetWrtShellPtr()->GetOut()->GetMapMode().GetScaleY());
Point aOffset(PixelToLogic(pChild->GetPosPixel() * rFraction.GetDenominator() / rFraction.GetNumerator())); Point aOffset(PixelToLogic(pChild->GetPosPixel() * rFraction.GetDenominator() / rFraction.GetNumerator()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment