Skip to content

Commit

Permalink
never try to fetch base at position < 0 (fixes #449)
Browse files Browse the repository at this point in the history
  • Loading branch information
armish committed Feb 21, 2017
1 parent 5b7858a commit 495a001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/viz/GenomeTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class GenomeTiledCanvas extends TiledCanvas {
// The +/-1 ensures that partially-visible bases on the edge are rendered.
var genomeRange = {
contig: range.contig,
start: range.start() - 1,
start: Math.max(0, range.start() - 1),
stop: range.stop() + 1
};
var basePairs = this.source.getRangeAsString(genomeRange);
Expand Down

0 comments on commit 495a001

Please sign in to comment.