summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2011-12-21 22:09:46 +0100
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2011-12-21 22:11:13 +0100
commite09b9a635ee23ce162e1733fc804a2cc182bc25f (patch)
tree8e30561e317a8b8c2f6c67ad449f09c2d7ddee3a
parentf47ee3cd6113ff1312ca49b38d733ec293c423c1 (diff)
Header/Footer,Page Break: fix bad test for printing mode (fdo#43962)
-rwxr-xr-xsw/source/core/layout/paintfrm.cxx6
1 files changed, 3 insertions, 3 deletions
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( ) )