diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx index ee8d46b1c401..476d4957257d 100644 --- a/sw/source/ui/config/optpage.cxx +++ b/sw/source/ui/config/optpage.cxx @@ -433,9 +433,11 @@ bool SwContentOptPage::FillItemSet(SfxItemSet* rSet) aElem.SetDefaultZoomValue(100); } else + { aElem.SetDefaultZoomType(SvxZoomType::PERCENT); + aElem.SetDefaultZoomValue(m_xZoomValue->get_value(FieldUnit::PERCENT)); + } } - aElem.SetDefaultZoomValue(m_xZoomValue->get_value(FieldUnit::PERCENT)); bool bRet = !pOldAttr || aElem != *pOldAttr; if(bRet) diff --git a/sw/source/uibase/app/swmodul1.cxx b/sw/source/uibase/app/swmodul1.cxx index b246dbbb5b2e..be12a460ab6d 100644 --- a/sw/source/uibase/app/swmodul1.cxx +++ b/sw/source/uibase/app/swmodul1.cxx @@ -100,7 +100,7 @@ static void lcl_SetUIPrefs(const SwViewOption &rPref, SwView* pView, SwViewShell pView->CreateTab(); else pView->KillTab(); - + pView->SetZoom(rPref.GetZoomType(), rPref.GetZoom(), true); pView->GetPostItMgr()->PrepareView(true); }