Hello! There was an issue with acor_* files containing lots of entries (takes forever to load in Autocorrection options). With a small modification in cui/source/tabpages/autocdlg.cxx the issue seems to be gone. Thanks Michael Meeks! I tested it with the attached acor_it-IT.dat file. Autocorrection worked, and it loaded all entries. Load time before patch: ? minutes (didn't wait) Load time after patch: 1.5-2 seconds (and i have an old comp.) Szabolcs
From 2485d15e55b9e38399b28ef3f4fb0319d79329f3 Mon Sep 17 00:00:00 2001 From: Szabolcs Dezsi <dezsiszabi@hotmail.com> Date: Fri, 24 Feb 2012 16:42:35 +0100 Subject: [PATCH] Reduced loadtime of autocorrect tables --- cui/source/tabpages/autocdlg.cxx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index 93a370f..cdd56d0 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -1213,7 +1213,7 @@ void OfaAutocorrReplacePage::RefillReplaceBox(sal_Bool bFromReset, { SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect(); SvxAutocorrWordList* pWordList = pAutoCorrect->LoadAutocorrWordList(eLang); - + aReplaceTLB.SetUpdateMode(sal_False); for(sal_uInt16 i = 0; i < pWordList->Count(); i++) { SvxAutocorrWordPtr pWordPtr = pWordList->GetObject(i); @@ -1234,7 +1234,7 @@ void OfaAutocorrReplacePage::RefillReplaceBox(sal_Bool bFromReset, } aNewReplacePB.Enable(sal_False); aDeleteReplacePB.Enable(sal_False); - + aReplaceTLB.SetUpdateMode(sal_True); } SfxViewShell* pViewShell = SfxViewShell::Current(); -- 1.7.7
Attachment:
acor_it-IT.dat
Description: MPEG movie