Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index



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


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.