From 5e772cda4008fc26bdbd015041d40806b5c339f0 Mon Sep 17 00:00:00 2001 From: Cédric Bosdonnat Date: Wed, 21 Dec 2011 22:09:46 +0100 Subject: Header/Footer,Page Break: fix bad test for printing mode (fdo#43962) --- sw/source/core/layout/paintfrm.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sw') diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index c33da2817166..387d8a38b099 100755 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -3323,7 +3323,7 @@ drawinglayer::primitive2d::Primitive2DSequence lcl_CreateDashedIndicatorPrimitiv void SwPageFrm::PaintBreak( ) const { - if ( !pGlobalShell->GetViewOptions()->IsPrinting() && + if ( pGlobalShell->GetOut()->GetOutDevType() != OUTDEV_PRINTER && !pGlobalShell->GetViewOptions()->IsPDFExport() && !pGlobalShell->IsPreView() ) { @@ -3358,7 +3358,7 @@ void SwPageFrm::PaintBreak( ) const void SwColumnFrm::PaintBreak( ) const { - if ( !pGlobalShell->GetViewOptions()->IsPrinting() && + if ( pGlobalShell->GetOut()->GetOutDevType() != OUTDEV_PRINTER && !pGlobalShell->GetViewOptions()->IsPDFExport() && !pGlobalShell->IsPreView() ) { @@ -3465,7 +3465,7 @@ void SwPageFrm::PaintDecorators( ) const { SwRect aBodyRect( pBody->Frm() ); - if ( !pGlobalShell->GetViewOptions()->IsPrinting() && + if ( pGlobalShell->GetOut()->GetOutDevType() != OUTDEV_PRINTER && !pGlobalShell->GetViewOptions()->IsPDFExport() && !pGlobalShell->IsPreView() && pGlobalShell->IsShowHeaderFooterSeparator( ) ) -- cgit