X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fgui%2Fstructurechooser%2FStructureChooserQuerySource.java;h=a4cf4ab877dc7c3f3c0c22723d11d57cf32aa58f;hb=57738a1f3c19b1c3a00bd3ac5108f8cd0af32f99;hp=1aad2e0141c3327c3616c44be890b4b096b6e404;hpb=e7338a61f3ce96dadf44ac80b2b32cc5ba4b94c8;p=jalview.git diff --git a/src/jalview/gui/structurechooser/StructureChooserQuerySource.java b/src/jalview/gui/structurechooser/StructureChooserQuerySource.java index 1aad2e0..a4cf4ab 100644 --- a/src/jalview/gui/structurechooser/StructureChooserQuerySource.java +++ b/src/jalview/gui/structurechooser/StructureChooserQuerySource.java @@ -237,13 +237,17 @@ public abstract class StructureChooserQuerySource if (refsAvailable > -1) { hasCanonical = true; - } else { + } + else + { protWithoutCanon++; } hasUniprot = true; - } else { + } + else + { protWithoutUni++; - + } } } @@ -251,7 +255,8 @@ public abstract class StructureChooserQuerySource // logic: all canonicals - no fetchdb // some uniprot no canonicals: defer to PDB, user can optionally fetch // - if (hasProtein && hasCanonical && !hasNA && protWithoutCanon == 0 && protWithoutUni == 0) + if (hasProtein && hasCanonical && !hasNA && protWithoutCanon == 0 + && protWithoutUni == 0) { return tdbSource;