Skip to content

Commit

Permalink
Merge branch 'albert-github-feature/bug_no_warning_on_cite'
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Aug 18, 2014
2 parents ca80d3c + c31a81a commit e864a6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/cite.cpp
Expand Up @@ -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;

Expand Down
11 changes: 5 additions & 6 deletions src/docparser.cpp
Expand Up @@ -2459,26 +2459,25 @@ 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);
//printf("CITE ==> m_text=%s,m_ref=%s,m_file=%s,m_anchor=%s\n",
// 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));
}

//---------------------------------------------------------------------------
Expand Down

0 comments on commit e864a6c

Please sign in to comment.