Skip to content
Snippets Groups Projects
Commit bb823872 authored by edgrif's avatar edgrif
Browse files

reinstitute 1,0 default for sequence start/end.

parent d9d87091
No related branches found
No related tags found
No related merge requests found
......@@ -25,9 +25,9 @@
* Description:
* Exported functions: See zmapApp_P.h
* HISTORY:
* Last edited: Dec 1 10:07 2009 (edgrif)
* Last edited: Feb 4 16:20 2010 (edgrif)
* Created: Thu Jul 24 14:36:37 2003 (edgrif)
* CVS info: $Id: zmapAppconnect.c,v 1.24 2010-01-27 15:02:55 mh17 Exp $
* CVS info: $Id: zmapAppconnect.c,v 1.25 2010-02-04 16:57:32 edgrif Exp $
*-------------------------------------------------------------------
*/
......@@ -172,7 +172,7 @@ static void createThreadCB(GtkWidget *widget, gpointer cb_data)
{
ZMapAppContext app_context = (ZMapAppContext)cb_data ;
char *sequence = "", *start_txt, *end_txt ;
int start = 0, end = 0 ;
int start = 1, end = 0 ;
sequence = (char *)gtk_entry_get_text(GTK_ENTRY(app_context->sequence_widg)) ;
if (sequence && strlen(sequence) == 0) /* gtk_entry returns "" for "no text". */
......@@ -182,10 +182,10 @@ static void createThreadCB(GtkWidget *widget, gpointer cb_data)
if ((start_txt && strlen(start_txt) >= 1)) /* gtk_entry returns "" for "no text". */
{
if (!zMapStr2Int(start_txt, &start))
start = 0 ;
start = 1 ;
}
else
start = 0 ;
start = 1 ;
end_txt = (char *)gtk_entry_get_text(GTK_ENTRY(app_context->end_widg)) ;
......
......@@ -26,9 +26,9 @@
*
* Exported functions: None
* HISTORY:
* Last edited: 2009-11-30 09:07:43 (mgh) added and then removed scripts-dir config in [ZMap], now in pipeServer.c
* Last edited: Feb 4 16:20 2010 (edgrif)
* Created: Thu Jul 24 14:36:27 2003 (edgrif)
* CVS info: $Id: zmapAppwindow.c,v 1.66 2010-01-27 15:02:59 mh17 Exp $
* CVS info: $Id: zmapAppwindow.c,v 1.67 2010-02-04 16:57:32 edgrif Exp $
*-------------------------------------------------------------------
*/
......@@ -244,7 +244,7 @@ int zmapMainMakeAppWindow(int argc, char *argv[])
/* If user specifyed a sequence in the config. file or on the command line then
* display it straight away, app exits if bad command line params supplied. */
sequence = app_context->default_sequence ;
start = 0 ;
start = 1 ;
end = 0 ;
if (!sequence)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment