For 'twice' usage do not warn about references which will be completed in second pass (and make logs shorter).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
41964404be
commit
7e9968f702
@ -39,6 +39,7 @@ static inline wxChar* copystring(const wxChar* s)
|
||||
|
||||
extern wxHashTable TexReferences;
|
||||
|
||||
extern int passNumber;
|
||||
|
||||
extern void DecToHex(int, wxChar *);
|
||||
void GenerateHTMLIndexFile(wxChar *fname);
|
||||
@ -2107,11 +2108,17 @@ bool HTMLOnArgument(int macroId, int arg_no, bool start)
|
||||
TraverseChildrenFromChunk(helpRefText);
|
||||
if (!ignoreBadRefs)
|
||||
TexOutput(_T(" (REF NOT FOUND)"));
|
||||
|
||||
// for launching twice do not warn in preparation pass
|
||||
if ((passNumber == 1 && !runTwice) ||
|
||||
(passNumber == 2 && runTwice))
|
||||
{
|
||||
wxString errBuf;
|
||||
errBuf.Printf(_T("Warning: unresolved reference '%s'"), refName);
|
||||
OnInform((wxChar *)errBuf.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
else TexOutput(_T("??"));
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user