src/hg/hgTracks/contigTrack.c 1.7

1.7 2010/05/11 01:43:27 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/hgTracks/contigTrack.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/contigTrack.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -b -B -U 4 -r1.6 -r1.7
--- src/hg/hgTracks/contigTrack.c	3 Sep 2008 19:19:01 -0000	1.6
+++ src/hg/hgTracks/contigTrack.c	11 May 2010 01:43:27 -0000	1.7
@@ -18,9 +18,9 @@
 struct ctgPos *ctgList = NULL, *ctg;
 
 /* Get the contigs and load into tg->items. */
 sprintf(query, "select * from %s where chrom = '%s' and chromStart<%u and chromEnd>%u",
-    tg->mapName, chromName, winEnd, winStart);
+    tg->table, chromName, winEnd, winStart);
 sr = sqlGetResult(conn, query);
 while ((row = sqlNextRow(sr)) != NULL)
     {
     ctg = ctgPosLoad(row);
@@ -83,9 +83,9 @@
     if (isFull)
 	y += lineHeight;
     else 
 	{
-	mapBoxHc(hvg, ctg->chromStart, ctg->chromEnd, x1,y,w,heightPer, tg->mapName, 
+	mapBoxHc(hvg, ctg->chromStart, ctg->chromEnd, x1,y,w,heightPer, tg->track, 
 	    tg->mapItemName(tg, ctg), 
 	    tg->itemName(tg, ctg));
 	}
     ++ix;