summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();