From 22b056f9ca8453ef559c71bf957e417b6bc96eb6 Mon Sep 17 00:00:00 2001
From: Niklaus Johner <niklaus.johner@unibas.ch>
Date: Wed, 17 Sep 2014 11:50:13 +0200
Subject: [PATCH] Fixed the compound name assignment in the compound library.

---
 modules/conop/src/compound_lib.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/conop/src/compound_lib.cc b/modules/conop/src/compound_lib.cc
index ba8ecc51d..3c3ed5691 100644
--- a/modules/conop/src/compound_lib.cc
+++ b/modules/conop/src/compound_lib.cc
@@ -224,6 +224,7 @@ void CompoundLib::AddCompound(const CompoundPtr& compound)
     modi_date_str=modi_date.ToString();
     sqlite3_bind_text(stmt, 7, crea_date_str.c_str(), crea_date_str.length(), NULL);
     sqlite3_bind_text(stmt, 8, modi_date_str.c_str(), modi_date_str.length(), NULL);
+    sqlite3_bind_text(stmt, 9, compound->GetName().c_str(), compound->GetName().length(), NULL);
     int charge=compound->GetCharge();
     sqlite3_bind_int(stmt, 10, charge);
   } else {
-- 
GitLab