diff --git a/src/latexdocument.cpp b/src/latexdocument.cpp index 67bed62664..2a08954bc6 100644 --- a/src/latexdocument.cpp +++ b/src/latexdocument.cpp @@ -1906,6 +1906,7 @@ QList LatexDocument::userCommandList() const { QList csl; foreach (UserCommandPair cmd, mUserCommandList) { + if(cmd.name.isEmpty()) continue; // filter out special def csl.append(cmd.snippet); } std::sort(csl.begin(),csl.end());