sc/source/core/data/documen2.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 55ee3ede2bb0211e895053ed3a54bb1c99cc94ca Author: Justin Luth <jl...@mail.com> AuthorDate: Mon Oct 3 20:12:19 2022 -0400 Commit: Justin Luth <jl...@mail.com> CommitDate: Tue Oct 4 04:26:48 2022 +0200 tdf#139480 sc: Un/Track changes now marks spreadsheet as unsaved It makes it consistent with SW, which is why I went ahead with this without asking any questions. Change-Id: Ibb8f4149bfb3bd785c35772d0ff399f60c0d1c72 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140933 Tested-by: Justin Luth <jl...@mail.com> Reviewed-by: Justin Luth <jl...@mail.com> diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx index 124089bd7139..f784d510fe6c 100644 --- a/sc/source/core/data/documen2.cxx +++ b/sc/source/core/data/documen2.cxx @@ -277,11 +277,17 @@ sal_uInt32 ScDocument::GetDocumentID() const void ScDocument::StartChangeTracking() { if (!pChangeTrack) + { pChangeTrack.reset( new ScChangeTrack( *this ) ); + if (mpShell) + mpShell->SetModified(); + } } void ScDocument::EndChangeTracking() { + if (pChangeTrack && mpShell) + mpShell->SetModified(); pChangeTrack.reset(); }