e9843f1adadbd40473c1ae8566635748cfb094c3 kate Wed Apr 6 17:31:11 2016 -0700 Changes after Angie code review (tnx!) diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index 6063cfe..251f0ff 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -7604,31 +7604,31 @@ newScoreMin = cartMinGrayLevel * scoreMax/maxShade; prevTrackName = tdb->track; } if (cartMinGrayLevel != scoreMinGrayLevel) { float realScore = (float)(bed->score - scoreMin) / (scoreMax - scoreMin); bed->score = newScoreMin + (realScore * (scoreMax - newScoreMin)) + 0.5; } else if (scoreMin != 0 && scoreMax == 1000) // Changes gray level even when { // UI does not allow selecting it. float realScore = (float)(bed->score) / 1000; bed->score = scoreMin + (realScore * (scoreMax - scoreMin)) + 0.5; } } -void bedLoadItemByQueryWhere(struct track *tg, char *table, char *query, +static void bedLoadItemByQueryWhere(struct track *tg, char *table, char *query, char *extraWhere, ItemLoader loader) /* Generic itg->item loader, adding extra clause to hgRangeQuery if query is NULL * and extraWhere is not NULL */ { struct sqlConnection *conn = hAllocConn(database); int rowOffset = 0; struct sqlResult *sr = NULL; char **row = NULL; struct slList *itemList = NULL, *item = NULL; if (query == NULL) sr = hRangeQuery(conn, table, chromName, winStart, winEnd, extraWhere, &rowOffset); else sr = sqlGetResult(conn, query);