diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-29 17:52:38 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-11-03 18:10:20 +0100 |
commit | 65de0dc9a8aa0464418316a00698368408cf5cec (patch) | |
tree | eaa2f51611c69c00a79fb65efce3e00768ea38d1 | |
parent | 89b545fd24c25b5fe98139c314bec4e626db1a30 (diff) |
tdf#93509: Commit at the right time
when the change is made, not during exit (as did
4aab13f77e5dc218d067ca7efe3622f4ea780bf9 "tdf#93509: crash on storing auto
correction config fixed," which caused PythonTest_sw_python to crash during
exit)
(cherry picked from commit fc7df6f9a6caf975867f4fcb87b5b0c86ed1ee84)
Conflicts:
sw/source/uibase/app/swdll.cxx
Change-Id: I0e9c264ae3fee7fdb732d36f42ebbb477557a644
Reviewed-on: https://gerrit.libreoffice.org/19673
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
(cherry picked from commit 61693775969fb7c8bfadfae72405225411ce79ea)
-rw-r--r-- | sw/source/uibase/shells/textsh1.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index 61398c80b9d1..48e3b1bf1e81 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -666,6 +666,7 @@ void SwTextShell::Execute(SfxRequest &rReq) if( bSet != rACfg.IsAutoFormatByInput() ) { rACfg.SetAutoFormatByInput( bSet ); + rACfg.Commit(); GetView().GetViewFrame()->GetBindings().Invalidate( nSlot ); if ( !pItem ) rReq.AppendItem( SfxBoolItem( GetPool().GetWhich(nSlot), bSet ) ); |