Index: src/hg/lib/bedCart.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/bedCart.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -B -U 1000000 -r1.2 -r1.3
--- src/hg/lib/bedCart.c	24 Nov 2004 19:42:35 -0000	1.2
+++ src/hg/lib/bedCart.c	10 Apr 2009 16:47:40 -0000	1.3
@@ -1,35 +1,35 @@
 /*	bedCart.c - take care of parsing values from the
  *	bed trackDb optional settings and the same values that may be
  *	in the cart.
  */
 #include "common.h"
 #include "jksql.h"
 #include "trackDb.h"
 #include "cart.h"
 #include "dystring.h"
 #include "bedCart.h"
 
 static char const rcsid[] = "$Id$";
 
 #if defined(NOT_YET)
 extern struct cart *cart;      /* defined in hgTracks.c or hgTrackUi */
 /*	This option isn't in the cart yet ... maybe later	*/
 #endif
 
 /******	itemRgb - not on by default **************************/
 boolean bedItemRgb(struct trackDb *tdb)
 {
 char *Default="Off";	/* anything different than this will turn it on */
 char *tdbDefault = (char *)NULL;
 
 if (tdb)
-    tdbDefault = trackDbSetting(tdb, OPT_ITEM_RGB);
+    tdbDefault = trackDbSettingClosestToHome(tdb, OPT_ITEM_RGB);
 
 if (tdbDefault)
     {
     if (differentWord(Default,tdbDefault))
 	return TRUE;
     }
 
 return FALSE;
 }	/*	boolean bedItemRgb(struct trackDb *tdb)	*/

