From b40e588eda6f640aa69ded711e49f8590bdc78b6 Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 2 Sep 2010 12:31:38 +0000 Subject: [PATCH] increment if strings *dont* match --- src/jalview/ext/jmol/JalviewJmolBinding.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jalview/ext/jmol/JalviewJmolBinding.java b/src/jalview/ext/jmol/JalviewJmolBinding.java index 5a36b7c..f27b533 100644 --- a/src/jalview/ext/jmol/JalviewJmolBinding.java +++ b/src/jalview/ext/jmol/JalviewJmolBinding.java @@ -694,8 +694,8 @@ public abstract class JalviewJmolBinding implements StructureListener, mset[j] = viewer.getModelFileName(i); _modelFileNameMap[j] = i; // record the model index for the filename // skip any additional models in the same file (NMR structures) - if ((mset[j] == null ? mset[j] != mset[j - 1] : mset[j - 1] == null - || mset[j].equals(mset[j - 1]))) + if ((mset[j] == null ? mset[j] != mset[j - 1] : (mset[j - 1] == null + || !mset[j].equals(mset[j - 1])))) { j++; } -- 1.7.10.2