* text3.C: two-phase drawing for InsetText and InsetTabular
some float -> int changes.
+2003-07-18 Alfredo Braunstein <abraunst@libero.it>
+
+ * lyx_main.C: fix the fix
+
2003-07-18 Alfredo Braunstein <abraunst@libero.it>
* lyx_main.C: fix a crash in batch mode if no files specified
}
}
- bool success = false;
-
// try to dispatch to last loaded buffer first
- if (last_loaded)
- last_loaded->dispatch(batch_command, &success);
- else
- lyxerr << _("Batch command specified but no "
- "file loaded. Exiting.") << endl;
-
- QuitLyX();
- exit(!success);
+ if (last_loaded) {
+ bool success = false;
+ if (last_loaded->dispatch(batch_command, &success)) {
+ QuitLyX();
+ exit(!success);
+ }
+ }
+ files.clear(); // the files are already loaded
}
lyx_gui::start(batch_command, files);