Skip to content
Snippets Groups Projects
Commit 65c2fd2e authored by tjc's avatar tjc
Browse files

fix for when additional bam files are added

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@13369 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent cdfb7482
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,8 @@ import net.sf.samtools.SAMRecord;
public void actionPerformed(ActionEvent e)
{
lines =
LineAttributes.configurePlots(jamView.bamList, lines, CoveragePanel.this);
LineAttributes.configurePlots(jamView.bamList,
getLineAttributes(), CoveragePanel.this);
}
});
popup.add(configure);
......@@ -211,6 +212,13 @@ import net.sf.samtools.SAMRecord;
{
if(lines == null)
lines = LineAttributes.init(jamView.bamList.size());
else if(lines.length < jamView.bamList.size())
{
LineAttributes tmpLines[] = LineAttributes.init(jamView.bamList.size());
for(int i=0;i<lines.length;i++)
tmpLines[i] = lines[i];
lines = tmpLines;
}
return lines;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment