diff options
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/inc/toxmgr.hxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/index/toxmgr.cxx | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/inc/toxmgr.hxx b/sw/source/uibase/inc/toxmgr.hxx index 6f0ccc290721..12cad3c88fe8 100644 --- a/sw/source/uibase/inc/toxmgr.hxx +++ b/sw/source/uibase/inc/toxmgr.hxx @@ -256,6 +256,7 @@ public: bool UpdateOrInsertTOX(const SwTOXDescription& rDesc, SwTOXBase** ppBase, const SfxItemSet* pSet); const SwTOXType* GetTOXType(TOXTypes eTyp) const; + SwWrtShell * GetShell() { return pSh; } }; // inlines diff --git a/sw/source/uibase/index/toxmgr.cxx b/sw/source/uibase/index/toxmgr.cxx index d1b78368a7c3..91309932115c 100644 --- a/sw/source/uibase/index/toxmgr.cxx +++ b/sw/source/uibase/index/toxmgr.cxx @@ -440,7 +440,7 @@ bool SwTOXMgr::UpdateOrInsertTOX(const SwTOXDescription& rDesc, pDoc->GetIDocumentUndoRedo().StartUndo(SwUndoId::TOXCHANGE, nullptr); } - pDoc->ChgTOX(*pTOX, *pNewTOX); + pDoc->ChangeTOX(*pTOX, *pNewTOX, *pSh->GetLayout()); pTOX->DisableKeepExpression(); pSh->UpdateTableOf(*pTOX, pSet); |