]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed closing of program to work properly if PASS #1 failed for some reason. Before...
authorGeorge Tasker <gtasker@allenbrook.com>
Wed, 18 Jul 2001 21:04:36 +0000 (21:04 +0000)
committerGeorge Tasker <gtasker@allenbrook.com>
Wed, 18 Jul 2001 21:04:36 +0000 (21:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/tex2rtf/src/tex2rtf.cpp

index 40537bea252c755479feca2f72e1515e728259d9..0e44e16304b1709b06dc21b295ad45780cdce4ce 100644 (file)
@@ -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)