From 5647127f99d08151708bd6fc0f804ab3d5a11cf1 Mon Sep 17 00:00:00 2001
From: Gabriel Studer <gabriel.studer@stud.unibas.ch>
Date: Mon, 27 May 2013 18:58:30 +0200
Subject: [PATCH] corrected stupid error

---
 modules/conop/src/compound_lib_base.cc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/conop/src/compound_lib_base.cc b/modules/conop/src/compound_lib_base.cc
index b5071e00f..708c630bb 100644
--- a/modules/conop/src/compound_lib_base.cc
+++ b/modules/conop/src/compound_lib_base.cc
@@ -16,8 +16,10 @@ bool CompoundLibBase::IsResidueComplete(const ost::mol::ResidueHandle& res, bool
         }
       }
     }
-    if(!res.FindAtom(it->name).IsValid()){
-      return false;
+    else{
+      if(!res.FindAtom(it->name).IsValid()){
+        return false;
+      }
     }
   }
   return true;
-- 
GitLab