summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/layout/paintfrm.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 2375fae0db3c..db2e567d5543 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -3703,6 +3703,11 @@ SwShortCut::SwShortCut( const SwFrame& rFrame, const SwRect& rRect )
void SwLayoutFrame::PaintSwFrame(vcl::RenderContext& rRenderContext, SwRect const& rRect, SwPrintData const*const) const
{
+ if (!getFramePrintArea().HasArea())
+ {
+ return; // do not paint hidden frame
+ }
+
// #i16816# tagged pdf support
Frame_Info aFrameInfo(*this, false);
SwTaggedPDFHelper aTaggedPDFHelper( nullptr, &aFrameInfo, nullptr, rRenderContext );
@@ -4642,6 +4647,10 @@ void SwTextFrame::PaintOutlineContentVisibilityButton() const
void SwTabFrame::PaintSwFrame(vcl::RenderContext& rRenderContext, SwRect const& rRect, SwPrintData const*const) const
{
+ if (!getFramePrintArea().HasArea())
+ {
+ return; // do not paint hidden frame
+ }
const SwViewOption* pViewOption = gProp.pSGlobalShell->GetViewOptions();
if (pViewOption->IsTable())
{