[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - sc/source

Julien Nabet serval2412 at yahoo.fr
Sun Dec 21 16:55:47 PST 2014


 sc/source/core/data/funcdesc.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 8ef3727ea2cab81605913b866d8eaef341f26b00
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Dec 21 22:45:43 2014 +0100

    Resolves fdo#87558: Duplication in Last Used Functions sidebar list
    
    Change-Id: If15199e205671d3e96e5c2b2940c0a6defced0e0
    Reviewed-on: https://gerrit.libreoffice.org/13583
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/source/core/data/funcdesc.cxx b/sc/source/core/data/funcdesc.cxx
index d7d1f9f..cdc6171 100644
--- a/sc/source/core/data/funcdesc.cxx
+++ b/sc/source/core/data/funcdesc.cxx
@@ -783,7 +783,10 @@ void ScFunctionMgr::fillLastRecentlyUsedFunctions(::std::vector< const formula::
     if ( pLRUListIds )
     {
         for (sal_uInt16 i = 0; i < nLRUFuncCount; ++i)
-            _rLastRUFunctions.push_back( Get( pLRUListIds[i] ) );
+        {
+            if (std::find(_rLastRUFunctions.begin(), _rLastRUFunctions.end(), Get(pLRUListIds[i])) == _rLastRUFunctions.end())
+                _rLastRUFunctions.push_back( Get( pLRUListIds[i] ) );
+        }
     }
 }
 


More information about the Libreoffice-commits mailing list