From e4941e3d1292cfe4422a1c32e077de1fcfce258c Mon Sep 17 00:00:00 2001 From: George Tasker Date: Wed, 18 Jul 2001 21:04:36 +0000 Subject: [PATCH] Fixed closing of program to work properly if PASS #1 failed for some reason. Before this fix, you could not exit the GUI version of the program under windows without using CTRL-ALT-DEL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/tex2rtf/src/tex2rtf.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/tex2rtf/src/tex2rtf.cpp b/utils/tex2rtf/src/tex2rtf.cpp index 40537bea25..0e44e16304 100644 --- a/utils/tex2rtf/src/tex2rtf.cpp +++ b/utils/tex2rtf/src/tex2rtf.cpp @@ -991,7 +991,10 @@ bool Go(void) TexLoadFile(InputFile); if (stopRunning) + { + OkToClose = TRUE; return FALSE; + } switch (convertMode) { @@ -1017,6 +1020,7 @@ bool Go(void) OnInform("*** Aborted by user."); success = FALSE; stopRunning = FALSE; + OkToClose = TRUE; } if (success) -- 2.47.2