Patch #3455 2013-04-21 02:41

plainzw

Remove duplicated elements in pop-up doxgen document window
Download
3455-Remove_duplica.patch (559 bytes)
Category
Plugin::Bugfix
Status
Accepted
Close date
2013-05-04 16:47
Assigned to
alpha0010
Index: src/plugins/codecompletion/parser/tokentree.cpp
===================================================================
--- src/plugins/codecompletion/parser/tokentree.cpp    (revision 9000)
+++ src/plugins/codecompletion/parser/tokentree.cpp    (working copy)
@@ -907,6 +907,9 @@
 void TokenTree::AppendDocumentation(int tokenIdx, const wxString& doc)
 {
     wxString& newDoc = m_TokenDocumentationMap[tokenIdx];
+    // Don't add the same document!
+    if ((newDoc != _T("")) && (newDoc == doc))
+        return;
     newDoc += doc;
     newDoc.Shrink();
 }