sw/source/uibase/docvw/edtwin.cxx | 1 + sw/source/uibase/utlui/content.cxx | 1 + 2 files changed, 2 insertions(+)
New commits: commit 14337ca8fe3ebc4fefbbf74b018f9b81fc5d9dfd Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Sat Oct 1 17:11:44 2022 -0800 Commit: Jim Raykowski <rayk...@gmail.com> CommitDate: Sun Oct 30 04:25:57 2022 +0100 tdf#151124 Make outline folding state change set doc modified state true Change-Id: I70408e768d2214b2c0a5c736f9e6fd8da36d3611 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140855 Tested-by: Jenkins Reviewed-by: Jim Raykowski <rayk...@gmail.com> diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index 89554aea9803..09d5fc6f0fe3 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -6846,6 +6846,7 @@ void SwEditWin::ToggleOutlineContentVisibility(const size_t nOutlinePos, const b rSh.InvalidateOutlineContentVisibility(); rSh.GotoOutline(nOutlinePos); + rSh.SetModified(); GetView().GetDocShell()->Broadcast(SfxHint(SfxHintId::DocChanged)); } diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 1605a470d438..6e8b3cd0ba77 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -4578,6 +4578,7 @@ void SwContentTree::ExecuteContextMenuAction(const OString& rSelectedPopupEntry) m_pActiveShell->GotoOutline(pCntFirst->GetOutlinePos()); grab_focus(); m_bIgnoreDocChange = false; + m_pActiveShell->SetModified(); m_pActiveShell->GetDoc()->GetDocShell()->Broadcast(SfxHint(SfxHintId::DocChanged)); } break;