diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-08-18 09:38:02 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-08-18 09:38:02 (GMT) |
commit | e864a6ca0fef6dc0c93a2257766ea531533a65b2 (patch) | |
tree | b6e78f8caf80386a94767b83addd6734236ecde5 | |
parent | ca80d3cda3522a15c6d7149f79103c0aed660400 (diff) | |
parent | c31a81a85e0396fb276beefd06bb71c2819571ed (diff) | |
download | Doxygen-e864a6ca0fef6dc0c93a2257766ea531533a65b2.zip Doxygen-e864a6ca0fef6dc0c93a2257766ea531533a65b2.tar.gz Doxygen-e864a6ca0fef6dc0c93a2257766ea531533a65b2.tar.bz2 |
Merge branch 'albert-github-feature/bug_no_warning_on_cite'
-rw-r--r-- | src/cite.cpp | 2 | ||||
-rw-r--r-- | src/docparser.cpp | 11 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/cite.cpp b/src/cite.cpp index 378e7ee..a33f12f 100644 --- a/src/cite.cpp +++ b/src/cite.cpp @@ -211,7 +211,7 @@ void CiteDict::generatePage() const f.setName(citeListFile); if (!f.open(IO_ReadOnly)) { - err("could not open file %s/citelist.doc for reading\n",outputDir.data()); + err("could not open file %s for reading\n",citeListFile.data()); } bool insideBib=FALSE; diff --git a/src/docparser.cpp b/src/docparser.cpp index bab0c75..8be11c6 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -2459,16 +2459,15 @@ void DocRef::parse() DocCite::DocCite(DocNode *parent,const QCString &target,const QCString &) //context) { static uint numBibFiles = Config_getList("CITE_BIB_FILES").count(); - m_parent = parent; - QCString anchor; + m_parent = parent; + QCString anchor; //printf("DocCite::DocCite(target=%s)\n",target.data()); ASSERT(!target.isEmpty()); m_relPath = g_relPath; CiteInfo *cite = Doxygen::citeDict->find(target); - if (numBibFiles>0 && cite) // ref to citation + if (numBibFiles>0 && cite && !cite->text.isEmpty()) // ref to citation { m_text = cite->text; - if (m_text.isEmpty()) m_text = cite->label; m_ref = cite->ref; m_anchor = CiteConsts::anchorPrefix+cite->label; m_file = convertNameToFile(CiteConsts::fileName,FALSE,TRUE); @@ -2476,9 +2475,9 @@ DocCite::DocCite(DocNode *parent,const QCString &target,const QCString &) //cont // m_text.data(),m_ref.data(),m_file.data(),m_anchor.data()); return; } - m_text = linkToText(SrcLangExt_Unknown,target,FALSE); + m_text = target; warn_doc_error(g_fileName,doctokenizerYYlineno,"unable to resolve reference to `%s' for \\cite command", - qPrint(target)); + qPrint(target)); } //--------------------------------------------------------------------------- |