src/hg/lib/chromGraphFactory.c 1.18

1.18 2010/05/11 01:43:29 kent
Refactoring to split the trackDb.tableName field into separate track and table fields. Similarly track.mapName field goes to the same track and table fields.
Index: src/hg/lib/chromGraphFactory.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/chromGraphFactory.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -b -B -U 4 -r1.17 -r1.18
--- src/hg/lib/chromGraphFactory.c	24 Feb 2009 19:41:39 -0000	1.17
+++ src/hg/lib/chromGraphFactory.c	11 May 2010 01:43:29 -0000	1.18
@@ -947,9 +947,10 @@
 	}
     tdb->shortLabel = cloneString(shortLabel);
     tdb->longLabel = cloneString(longLabel);
     tdb->type = "chromGraph";
-    tdb->tableName = customTrackTableFromLabel(tdb->shortLabel);
+    tdb->track = customTrackTableFromLabel(tdb->shortLabel);
+    tdb->table = cloneString(tdb->track);
     track->dbTableName = NULL;
 
     /* Create settings */
     struct dyString *dy = dyStringNew(0);