diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-03-10 23:56:55 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-03-11 00:19:25 +0100 |
commit | d1698027e9f1c4a88b17da7357f257be3cfb7c1a (patch) | |
tree | ee21aee935e2cddbdcf3ed78eef71ee2e1900ebc /editeng/source/misc | |
parent | 9aae521b451269007f03527c83645b8b935eb419 (diff) |
tdf#89867: editeng: fix crash on shutdown after changing AutoCorrect options
Since commit 5bff4b016c4b44f4123e0e6a4fd4c0c4dc0cfa2d the
SvxAutoCorrCfg::pAutoCorrect is cleared by one terminate() listener but
then another terminate() listener calls Commit() on all modified
utl::ConfigItem and these two have a Commit() that does not clear the
modified flag so they are always modified.
Sadly there's no non-virtual Commit() wrapper that
calls ClearModified() on the base class...
Change-Id: I9ae220d78bb109c7bf0fdc544754a0686b357115
Diffstat (limited to 'editeng/source/misc')
-rw-r--r-- | editeng/source/misc/acorrcfg.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editeng/source/misc/acorrcfg.cxx b/editeng/source/misc/acorrcfg.cxx index dce7df478b63..9ca989c6cace 100644 --- a/editeng/source/misc/acorrcfg.cxx +++ b/editeng/source/misc/acorrcfg.cxx @@ -321,6 +321,7 @@ void SvxBaseAutoCorrCfg::Commit() } } PutProperties(aNames, aValues); + ClearModified(); } void SvxBaseAutoCorrCfg::Notify( const Sequence<OUString>& /* aPropertyNames */) @@ -640,6 +641,7 @@ void SvxSwAutoCorrCfg::Commit() } } PutProperties(aNames, aValues); + ClearModified(); } void SvxSwAutoCorrCfg::Notify( const Sequence<OUString>& /* aPropertyNames */ ) |