Index: /trunk/Ohana/src/imregister/src/cameraconfig.c
===================================================================
--- /trunk/Ohana/src/imregister/src/cameraconfig.c	(revision 3313)
+++ /trunk/Ohana/src/imregister/src/cameraconfig.c	(revision 3314)
@@ -1,4 +1,4 @@
 # include "imregister.h"
-static char *version = "cameraconfig $Revision: 1.2 $";
+static char *version = "cameraconfig $Revision: 1.3 $";
 
 void usage ();
@@ -165,18 +165,18 @@
 
   GetID = FALSE;
-  IDsel = 0;
+  Nsel = 0;
   if ((N = get_argument (argc, argv, "-ID"))) {
     GetID = TRUE;
     remove_argument (N, &argc, argv);
-    IDsel = strcreate (argv[N]);
+    Nsel = atoi (argv[N]);
     remove_argument (N, &argc, argv);
   }
 
   GetN = FALSE;
-  Nsel = 0;
+  IDsel = NULL;
   if ((N = get_argument (argc, argv, "-N"))) {
     GetN = TRUE;
     remove_argument (N, &argc, argv);
-    Nsel = atoi (argv[N]);
+    IDsel = strcreate (argv[N]);
     remove_argument (N, &argc, argv);
   }
@@ -213,6 +213,6 @@
 	    ID, &x, &y, &dx, &dy, datasec, biassec, &Xo, &Yo, &theta);
 
-    if (GetN  && (Nsel == i)) fprintf (stdout, "%d\n", i);
-    if (GetID && strnumcmp (IDsel, ID)) fprintf (stdout, "%s\n", ID);
+    if (GetN  && strnumcmp (IDsel, ID)) fprintf (stdout, "%d\n", i);
+    if (GetID && (Nsel == i)) fprintf (stdout, "%s\n", ID);
     if (SEQ)     fprintf (stdout, "%d ", i);
     if (CCDS)    fprintf (stdout, "%s ", ID);
