summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-12-21 22:45:43 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-12-22 00:55:22 +0000
commit8ef3727ea2cab81605913b866d8eaef341f26b00 (patch)
tree7b2a8778b1f1d9a0e56779eace56a501e63c8ffd
parented92c5f1e3d0e2184672d6d31f25d0e933ebd3cd (diff)
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@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sc/source/core/data/funcdesc.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/core/data/funcdesc.cxx b/sc/source/core/data/funcdesc.cxx
index d7d1f9f96405..cdc6171cdabc 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] ) );
+ }
}
}