// desktop
assertEquals(frames.length, 2,
"PCA and the tabbed alignment view should be the only two windows on the desktop");
- PCAPanel pcaPanel = (PCAPanel) frames[frames[0] == af ? 1 : 0];
+ PCAPanel pcaPanel = (PCAPanel) frames[frames[0] == af.getIFrame() ? 1
+ : 0];
AlignmentViewPanel restoredNewView = null;
for (AlignmentViewPanel alignpanel : Desktop.getAlignmentPanels(null))