summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/pview.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/uiview/pview.cxx')
-rw-r--r--sw/source/uibase/uiview/pview.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/uiview/pview.cxx b/sw/source/uibase/uiview/pview.cxx
index e0a3b73aaccb..588fce60b723 100644
--- a/sw/source/uibase/uiview/pview.cxx
+++ b/sw/source/uibase/uiview/pview.cxx
@@ -815,9 +815,8 @@ void SwPagePreview::Execute( SfxRequest &rReq )
case SID_ZOOM_IN:
case SID_ZOOM_OUT:
{
- SvxZoomType eType = SvxZoomType::PERCENT;
const SwViewOption* pVOpt = GetViewShell()->GetViewOptions();
- SetZoom(eType,
+ SetZoom(SvxZoomType::PERCENT,
lcl_GetNextZoomStep(pVOpt->GetZoom(), SID_ZOOM_IN == rReq.GetSlot()));
}
break;
@@ -972,7 +971,6 @@ MOVEPAGE:
void SwPagePreview::GetState( SfxItemSet& rSet )
{
SfxWhichIter aIter(rSet);
- sal_uInt8 nRow = 1;
sal_uInt16 nWhich = aIter.FirstWhich();
OSL_ENSURE(nWhich, "empty set");
SwPagePreviewLayout* pPagePreviewLay = GetViewShell()->PagePreviewLayout();
@@ -1068,7 +1066,7 @@ void SwPagePreview::GetState( SfxItemSet& rSet )
break;
case FN_SHOW_TWO_PAGES:
- if( 2 == m_pViewWin->GetCol() && nRow == m_pViewWin->GetRow() )
+ if( 2 == m_pViewWin->GetCol() && 1 == m_pViewWin->GetRow() )
rSet.DisableItem( nWhich );
break;