On Monday 13 October 2003 12:10, Lars Gullik Bjønnes wrote:
>
> Patch is welcome.

Is this ok?

-- 
José Abílio

LyX and docbook, a perfect match. :-)
Index: lyx_gui.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/gtk/lyx_gui.C,v
retrieving revision 1.10
diff -u -p -r1.10 lyx_gui.C
--- lyx_gui.C	13 Oct 2003 12:25:10 -0000	1.10
+++ lyx_gui.C	13 Oct 2003 14:28:31 -0000
@@ -21,9 +21,11 @@
 #include "support/path_defines.h"
 
 #include "debug.h"
+#include "funcrequest.h"
 #include "gettext.h"
 
 #include "LColor.h"
+#include "LyXAction.h"
 #include "lyx_main.h"
 #include "lyxrc.h"
 #include "lyxfont.h"
@@ -336,7 +338,7 @@ void lyx_gui::start(string const & batch
 
 	// handle the batch commands the user asked for
 	if (!batch.empty()) {
-		view.getLyXFunc().dispatch(batch);
+		view.getLyXFunc().dispatch(lyxaction.lookupFunc(batch));
 	}
 
 	// enter the event loop

Reply via email to