summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-29 17:52:38 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-10-29 17:54:41 +0100
commitfc7df6f9a6caf975867f4fcb87b5b0c86ed1ee84 (patch)
tree98e35de5a0ec2f495f15617e869fd9c636b47dde
parent5eb7692ab845a879d265b2e4df48cb7e4536da33 (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) Change-Id: I0e9c264ae3fee7fdb732d36f42ebbb477557a644
-rw-r--r--sw/source/uibase/app/swdll.cxx1
-rw-r--r--sw/source/uibase/shells/textsh1.cxx1
2 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/app/swdll.cxx b/sw/source/uibase/app/swdll.cxx
index 0a33c882c7ee..cff230ce9313 100644
--- a/sw/source/uibase/app/swdll.cxx
+++ b/sw/source/uibase/app/swdll.cxx
@@ -156,7 +156,6 @@ SwDLL::~SwDLL()
{
// fdo#86494 SwAutoCorrect must be deleted before _FinitCore
SvxAutoCorrCfg& rACfg = SvxAutoCorrCfg::Get();
- rACfg.Commit();
rACfg.SetAutoCorrect(0); // delete SwAutoCorrect before exit handlers
}
diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx
index 0c042bb94e2c..c57ede29641b 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -702,6 +702,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 ) );