From 7ee6e771e2b267650a3f5042ffc5322069102491 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 22 Jul 2020 21:31:44 +0100 Subject: defeat IsReallyVisible for subedit of forms navigation-bar edit paint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I2baaf9f58831f52ae9d8d479bb409d8ffb70451d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99259 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/source/app/salvtables.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'vcl') diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 699c06287e05..ccc31697397c 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -72,6 +72,7 @@ #include #include #include +#include #include #include @@ -1144,8 +1145,16 @@ namespace xOutput->SetOutputSizePixel(aSize); xOutput->DrawOutDev(Point(), aSize, rPos, aSize, rOutput); + //set ReallyVisible to match Visible, we restore the original + //state after Paint + WindowImpl* pImpl = pWindow->ImplGetWindowImpl(); + bool bRVisible = pImpl->mbReallyVisible; + pImpl->mbReallyVisible = pWindow->IsVisible(); + pWindow->Paint(*xOutput, tools::Rectangle(Point(), aSize)); + pImpl->mbReallyVisible = bRVisible; + rOutput.DrawOutDev(rPos, aSize, Point(), aSize, *xOutput); xOutput.disposeAndClear(); -- cgit