 src/searchindex.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/searchindex.cpp b/src/searchindex.cpp
index f023e4d..5d129a7 100644
--- a/src/searchindex.cpp
+++ b/src/searchindex.cpp
@@ -624,11 +624,11 @@ class SearchIndexList : public SDict< SearchDefinitionList >
    ~SearchIndexList() {}
     void append(Definition *d)
     {
-      SearchDefinitionList *l = find(d->name());
+      SearchDefinitionList *l = find(d->localName());
       if (l==0)
       {
         l=new SearchDefinitionList(m_letter);
-        SDict<SearchDefinitionList>::append(d->name(),l);
+        SDict<SearchDefinitionList>::append(d->localName(),l);
       }
       l->append(d);
     }
