From 791d43e9517605ce9fad3a4686a5b38a73a53f3d Mon Sep 17 00:00:00 2001
From: marco <marco@5a81b35b-ba03-0410-adc8-b2c5c5119f08>
Date: Wed, 22 Sep 2010 12:37:46 +0000
Subject: [PATCH] fix thinko in sloppy hydrogen mode

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2725 5a81b35b-ba03-0410-adc8-b2c5c5119f08
---
 modules/conop/src/rule_based_builder.cc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/conop/src/rule_based_builder.cc b/modules/conop/src/rule_based_builder.cc
index daaaa050a..a7dcc3ed5 100644
--- a/modules/conop/src/rule_based_builder.cc
+++ b/modules/conop/src/rule_based_builder.cc
@@ -71,8 +71,10 @@ bool RuleBasedBuilder::HasUnknownAtoms(mol::ResidueHandle res)
   mol::AtomHandleList::iterator i=atoms.begin();
   for (mol::AtomHandleList::iterator 
        i=atoms.begin(), e=atoms.end(); i!=e; ++i) {
-    if ((*i).Impl()->GetState()==std::numeric_limits<unsigned int>::max() &&
-        this->GetStrictHydrogenMode() && (*i).GetElement()!="H") {
+    if ((*i).Impl()->GetState()==std::numeric_limits<unsigned int>::max()) {
+      if ((*i).GetElement()!="H" && this->GetStrictHydrogenMode()==false) {
+        continue;
+      }
       return true;
     }
   }
-- 
GitLab