diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2020-12-01 12:21:10 +0100 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2020-12-09 08:50:45 +0100 |
commit | c220d97e22001db116f6f8204922b25a9e61e26f (patch) | |
tree | de687cb1ba2d8eb5ef664fe90d356e3b2a576524 /sw/source/uibase/frmdlg/frmmgr.cxx | |
parent | e7ec5cf807fd65dd260e0466a79607edb7675346 (diff) |
Resolves tdf#99646 - Make default type of anchoring optional
Option introduced at Tools > Options > Writer > Formatting Aids
Change-Id: I8d890f84107647821c39669114b991c301727788
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106970
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sw/source/uibase/frmdlg/frmmgr.cxx')
-rw-r--r-- | sw/source/uibase/frmdlg/frmmgr.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/frmdlg/frmmgr.cxx b/sw/source/uibase/frmdlg/frmmgr.cxx index 35abd6baa560..3428c075c9c2 100644 --- a/sw/source/uibase/frmdlg/frmmgr.cxx +++ b/sw/source/uibase/frmdlg/frmmgr.cxx @@ -90,7 +90,8 @@ SwFlyFrameAttrMgr::SwFlyFrameAttrMgr( bool bNew, SwWrtShell* pSh, Frmmgr_Type nT if (!pName || *pName != SvGlobalName( SO3_SM_CLASSID )) { // Default anchor for new graphics and objects is at-char, except for Math objects. - m_aSet.Put(SwFormatAnchor(RndStdIds::FLY_AT_CHAR)); + SwViewOption aViewOpt(*pSh->GetViewOptions()); + m_aSet.Put(SwFormatAnchor(aViewOpt.GetDefaultAnchorType()));//RndStdIds::FLY_AT_CHAR } } } |