summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-22 21:31:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-23 10:38:06 +0200
commit7ee6e771e2b267650a3f5042ffc5322069102491 (patch)
tree5d8b1919422562f6ce358ac108d3101817a8948f /vcl
parent7db082e5758033c1d15ff885400fd98664d2837b (diff)
defeat IsReallyVisible for subedit of forms navigation-bar edit paint
Change-Id: I2baaf9f58831f52ae9d8d479bb409d8ffb70451d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99259 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/salvtables.cxx9
1 files changed, 9 insertions, 0 deletions
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 <bitmaps.hlst>
#include <calendar.hxx>
#include <verticaltabctrl.hxx>
+#include <window.h>
#include <wizdlg.hxx>
#include <salvtables.hxx>
@@ -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();