d0c3cbdc054376c6654f0a401b1c31baea5a8713 braney Thu Apr 25 15:28:28 2024 -0700 fix assert error diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index 7a677e6..5d5bd77 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -4320,31 +4320,31 @@ } } } if ((intronGap > 0) || chainLines) lfDrawSpecialGaps(lf, intronGap, chainLines, gapFactor, tg, hvg, xOff, y, scale, color, bColor, vis); if (vis != tvDense) { /* If highlighting differences between aligned sequence and genome when * zoomed way out, this must be done in a separate pass after exons are * drawn so that exons sharing the pixel don't overdraw differences. */ baseColorOverdrawDiff(tg, lf, hvg, xOff, y, scale, heightPer, qSeq, qOffset, psl, winStart, drawOpt); - if (indelShowQueryInsert || indelShowPolyA) + if (psl && (indelShowQueryInsert || indelShowPolyA)) baseColorOverdrawQInsert(tg, lf, hvg, xOff, y, scale, heightPer, qSeq, qOffset, psl, font, winStart, drawOpt, indelShowQueryInsert, indelShowPolyA); } } static void lfSeriesDrawConnecter(struct linkedFeaturesSeries *lfs, struct hvGfx *hvg, int start, int end, double scale, int xOff, int midY, Color color, Color bColor, enum trackVisibility vis) /* Draw connection between two sets of linked features. */ { if (start != -1 && !lfs->noLine) { int x1 = round((double)((int)start-winStart)*scale) + xOff; int x2 = round((double)((int)end-winStart)*scale) + xOff;