Changes to catch macros that are missing arguments - not perfect, but it will work with all our current TEX files.
Added cleaner ABORT handling in some situations If \\end{document} is not found, then program auto-aborts after first pass to avoid hanging in some endless loop until all system resources are exhausted and the program crashes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5090,6 +5090,9 @@ bool RTFOnArgument(int macroId, int arg_no, bool start)
|
||||
|
||||
bool RTFGo(void)
|
||||
{
|
||||
if (stopRunning)
|
||||
return FALSE;
|
||||
|
||||
// Reset variables
|
||||
indentLevel = 0;
|
||||
forbidParindent = 0;
|
||||
@@ -5164,6 +5167,9 @@ bool RTFGo(void)
|
||||
|
||||
SetCurrentOutput(Chapters);
|
||||
|
||||
if (stopRunning)
|
||||
return FALSE;
|
||||
|
||||
OnInform("Converting...");
|
||||
|
||||
TraverseDocument();
|
||||
|
Reference in New Issue
Block a user