Commit 4427dea5 authored by Christian Pichot's avatar Christian Pichot
Browse files

When 'existing matches'are not displayed, restore the correct index for the...

When 'existing matches'are not displayed, restore the correct index for the selection of a mapping to display its detailed properties and the graph
parent 7788e1c3
......@@ -171,20 +171,7 @@ public class AlignmentPanel extends JInternalFrame implements ActionListener, It
}
else
{
int index = mappings.indexOf(b);
//change index value if existing Matches are masked //cpichotjv2020
if(a.getMaskExisting())
{
int myIndex = 0;
while (myIndex <= index){
if(a.get(myIndex).getStatus3().equals(MappingStatus.CORRECT)){
index = index + 1;
}
myIndex = myIndex + 1;
}
}//cpichotjv2020
int index = mappings.indexOf(b);
if(index > -1)
{
aml.goTo(index);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment