Commit 1f776381 authored by albert-github's avatar albert-github Committed by Dimitri van Heesch
Browse files

No warning in case cite definition is missing

In case the \cite command is used but no entry for it is given in a bib file no warning is given as the CiteInfo entry is present with the right label, but the text item is empty and this is not tested.

(also corrected an error message on opening a file)
parent ca80d3cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -211,7 +211,7 @@ void CiteDict::generatePage() const
  f.setName(citeListFile);
  f.setName(citeListFile);
  if (!f.open(IO_ReadOnly)) 
  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;
  bool insideBib=FALSE;
  
  
+1 −1
Original line number Original line Diff line number Diff line
@@ -2465,7 +2465,7 @@ DocCite::DocCite(DocNode *parent,const QCString &target,const QCString &) //cont
  ASSERT(!target.isEmpty());
  ASSERT(!target.isEmpty());
  m_relPath = g_relPath;
  m_relPath = g_relPath;
  CiteInfo *cite = Doxygen::citeDict->find(target);
  CiteInfo *cite = Doxygen::citeDict->find(target);
  if (numBibFiles>0 && cite) // ref to citation
  if (numBibFiles>0 && cite && cite -> text) // ref to citation
  {
  {
    m_text         = cite->text;
    m_text         = cite->text;
    if (m_text.isEmpty()) m_text = cite->label;
    if (m_text.isEmpty()) m_text = cite->label;