summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/viewprt.cxx
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-07-24 14:58:17 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-07-26 14:25:27 +0200
commit37a4651ceb17c829d979230a13efe79b32072172 (patch)
tree62d52ecdfab7796df3011d3036dc0120a284d049 /sw/source/uibase/uiview/viewprt.cxx
parent36e52cbb3043ed6482d9f518af709b96604290cb (diff)
Use Orientation enum instead of sal_uInt16 + some bool
Change-Id: I8c0cd02cb339111442a99e8051f585bb0599633a
Diffstat (limited to 'sw/source/uibase/uiview/viewprt.cxx')
-rw-r--r--sw/source/uibase/uiview/viewprt.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/uiview/viewprt.cxx b/sw/source/uibase/uiview/viewprt.cxx
index c444040ff071..4022476951f3 100644
--- a/sw/source/uibase/uiview/viewprt.cxx
+++ b/sw/source/uibase/uiview/viewprt.cxx
@@ -121,13 +121,13 @@ sal_uInt16 SwView::SetPrinter(SfxPrinter* pNew, sal_uInt16 nDiffFlags, bool )
if ( nDiffFlags & SFX_PRINTER_OPTIONS )
::SetPrinter( rSh.getIDocumentDeviceAccess(), pNew, bWeb );
- const bool bChgOri = nDiffFlags & SFX_PRINTER_CHG_ORIENTATION ? sal_True : sal_False;
- const bool bChgSize= nDiffFlags & SFX_PRINTER_CHG_SIZE ? sal_True : sal_False;
+ const bool bChgOri = nDiffFlags & SFX_PRINTER_CHG_ORIENTATION;
+ const bool bChgSize= nDiffFlags & SFX_PRINTER_CHG_SIZE;
if ( bChgOri || bChgSize )
{
rSh.StartAllAction();
if ( bChgOri )
- rSh.ChgAllPageOrientation( sal_uInt16(pNew->GetOrientation()) );
+ rSh.ChgAllPageOrientation( pNew->GetOrientation() );
if ( bChgSize )
{
Size aSz( SvxPaperInfo::GetPaperSize( pNew ) );