summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docsh3.cxx2
-rw-r--r--sc/source/ui/view/printfun.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx
index 3d9408c80bdb..baf390806fce 100644
--- a/sc/source/ui/docshell/docsh3.cxx
+++ b/sc/source/ui/docshell/docsh3.cxx
@@ -538,7 +538,7 @@ sal_uInt16 ScDocShell::SetPrinter( SfxPrinter* pNewPrinter, SfxPrinterChangeFlag
{
const SvxPageItem& rOldItem = static_cast<const SvxPageItem&>(rSet.Get(ATTR_PAGE));
bool bWasLand = rOldItem.IsLandscape();
- bool bNewLand = ( pNewPrinter->GetOrientation() == ORIENTATION_LANDSCAPE );
+ bool bNewLand = ( pNewPrinter->GetOrientation() == Orientation::Landscape );
if (bNewLand != bWasLand)
{
SvxPageItem aNewItem( rOldItem );
diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx
index 089069736b8a..b23ffcdb163e 100644
--- a/sc/source/ui/view/printfun.cxx
+++ b/sc/source/ui/view/printfun.cxx
@@ -2587,7 +2587,7 @@ void ScPrintFunc::ApplyPrintSettings()
Size aEnumSize = aPageSize;
- pPrinter->SetOrientation( bLandscape ? ORIENTATION_LANDSCAPE : ORIENTATION_PORTRAIT );
+ pPrinter->SetOrientation( bLandscape ? Orientation::Landscape : Orientation::Portrait );
if ( bLandscape )
{
// landscape is always interpreted as a rotation by 90 degrees !