From: jprocter Date: Thu, 2 Sep 2010 12:31:38 +0000 (+0000) Subject: increment if strings *dont* match X-Git-Tag: Release_2_6~76 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b40e588eda6f640aa69ded711e49f8590bdc78b6;p=jalview.git increment if strings *dont* match --- 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++; }