fdb582c01440689f5dfcd81871ddbafdd332a3df tdreszer Tue Nov 16 17:18:43 2010 -0800 Sorry... fix sloppy checkin diff --git src/hg/hgGene/hgGene.c src/hg/hgGene/hgGene.c index 68c73f2..c3c9534 100644 --- src/hg/hgGene/hgGene.c +++ src/hg/hgGene/hgGene.c @@ -516,31 +516,31 @@ * otherwise from database. */ { char *oldGene = hashFindVal(oldVars, hggGene); char *oldStarts = hashFindVal(oldVars, hggStart); char *oldEnds = hashFindVal(oldVars, hggEnd); char *newGene = curGeneId; char *newChrom = cartOptionalString(cart, hggChrom); char *newStarts = cartOptionalString(cart, hggStart); char *newEnds = cartOptionalString(cart, hggEnd); if (newChrom != NULL && !sameString(newChrom, "none") && newStarts != NULL && newEnds != NULL) { - if (IS_CART_VAR_EMPTY(oldGene) == NULL || IS_CART_VAR_EMPTY(oldStarts) == NULL || IS_CART_VAR_EMPTY(oldEnds) == NULL + if (IS_CART_VAR_EMPTY(oldGene) || IS_CART_VAR_EMPTY(oldStarts) || IS_CART_VAR_EMPTY(oldEnds) || sameString(oldGene, newGene)) { curGeneChrom = newChrom; curGeneStart = atoi(newStarts); curGeneEnd = atoi(newEnds); return; } } /* If we made it to here we can't find/don't trust the cart position * info. We'll look it up from the database instead. */ { char *table = genomeSetting("knownGene"); char query[256]; struct sqlResult *sr;