Index: trunk/ppImage/src/burntool.h
===================================================================
--- trunk/ppImage/src/burntool.h	(revision 35685)
+++ trunk/ppImage/src/burntool.h	(revision 42395)
@@ -70,5 +70,5 @@
 #define STAR_RADIUS  4		/* Radius over which a star ctr must be max */
 #define SKY_MARG 3		/* Horiz offset from burn area for sky */
-#define FIT_EDGE 10		/* How far beyond saturation to start fit? */
+#define FIT_EDGE 5		/* How far beyond saturation to start fit? */
 #define Y_SCALE 0.01		/* Scale factor for y in fits */
 
@@ -102,5 +102,5 @@
 
 /* Fit parameters */
-#define FIT_MIN_SLOPE  -5.0	/* minimum slope which is a credible fit */
+#define FIT_MIN_SLOPE -10.0	/* minimum slope which is a credible fit */
 #define FIT_MAX_SLOPE   0.0	/* maximum slope which is a credible fit */
 
@@ -144,4 +144,5 @@
       int sxfit;	/* starting column for fits */
       int exfit;	/* ending column for fits */
+      int eyfit;        /* y-coord ending column for fits */
       int nfit;		/* how many columns were corrected? */
       IMTYPE *stamp;	/* postage stamp of this object */
@@ -176,6 +177,6 @@
 STATIC int burn_restore(int nx, int ny, int NX, IMTYPE *buf, CELL *cell);
 STATIC int burn_apply(int nx, int ny, int NX, IMTYPE *buf, CELL *cell);
-STATIC int persist_read(CELL *cell, const char *infile, int apply);
-STATIC int persist_write(CELL *cell, const char *outfile);
+STATIC int persist_read(CELL *cell, const char *infile, int apply, int oldfile);
+STATIC int persist_write(CELL *cell, const char *outfile, int oldfile);
 STATIC int persist_fix(int nx, int ny, int stride, IMTYPE *buf, CELL *cell);
 STATIC int persist_merge(CELL *cell);
