[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: pcb printing with action script



On 02/28/2009 12:42:25 AM, Kai-Martin wrote:

> A patch produced by this simple approach is attached.

now it really is...

---<(kaimartin)>---

-- 
Kai-Martin Knaak
kmk@xxxxxxxxxxxx
http://lilalaser.de/blog

diff --git a/src/hid/common/hidnogui.c b/src/hid/common/hidnogui.c
index 57509dc..2b625c3 100644
--- a/src/hid/common/hidnogui.c
+++ b/src/hid/common/hidnogui.c
@@ -58,7 +58,7 @@ nogui_invalidate_wh (int x, int y, int width, int height, int last)
 static void
 nogui_invalidate_lr (int l, int r, int t, int b, int last)
 {
-  CRASH;
+/*  CRASH; */
 }
 
 static void
diff --git a/src/main.c b/src/main.c
index a0b38f3..bdcb4c6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -966,6 +966,19 @@ main (int argc, char *argv[])
       LayerStringToLayerStack (Settings.InitialLayerStack);
     }
 
+  if (Settings.ScriptFilename)
+    {
+      Message (_("Executing startup script file %s\n"),
+	       Settings.ScriptFilename);
+      hid_actionl ("ExecuteFile", Settings.ScriptFilename, NULL);
+    }
+
+  if (Settings.ActionString)
+    {
+      Message (_("Executing startup action %s\n"), Settings.ActionString);
+      hid_parse_actions (Settings.ActionString, 0);
+    }
+
   if (gui->printer || gui->exporter)
     {
       gui->do_export (0);
@@ -998,18 +1011,6 @@ main (int argc, char *argv[])
    */
   Settings.init_done = 0;
 
-  if (Settings.ScriptFilename)
-    {
-      Message (_("Executing startup script file %s\n"),
-	       Settings.ScriptFilename);
-      hid_actionl ("ExecuteFile", Settings.ScriptFilename, NULL);
-    }
-  if (Settings.ActionString)
-    {
-      Message (_("Executing startup action %s\n"), Settings.ActionString);
-      hid_parse_actions (Settings.ActionString, 0);
-    }
-
   if (Settings.init_done == 0)
     {
       Settings.init_done = 1;


Attachment: pgp7ez5u3Z2xT.pgp
Description: PGP signature


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user