Skip to content
Snippets Groups Projects
Commit 35ccf025 authored by tjc's avatar tjc
Browse files

speed up check for multiple blocks in cigar

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@14915 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent d8e963e2
No related branches found
No related tags found
No related merge requests found
......@@ -1618,12 +1618,12 @@ public class BamView extends JPanel
g2.setStroke(originalStroke);
}
List<AlignmentBlock> blocks = thisRead.getAlignmentBlocks();
if(blocks.size() == 1)
if(thisRead.getCigar().getCigarElements().size() == 1)
g2.drawLine((int)( thisStart * pixPerBase), ypos,
(int)( thisEnd * pixPerBase), ypos);
else
{
List<AlignmentBlock> blocks = thisRead.getAlignmentBlocks();
Color c = g2.getColor();
int lastEnd = 0;
for(int i=0; i<blocks.size(); i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment