From 5ad3bb382a29e07a17823906dc23177467b419b7 Mon Sep 17 00:00:00 2001
From: Stefan Bienert <stefan.bienert@unibas.ch>
Date: Fri, 26 Jul 2013 11:40:04 +0200
Subject: [PATCH] Fixed copying atoms in PDBize: for the elment name, the atom
 name attribute was used.

---
 modules/mol/alg/src/pdbize.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/mol/alg/src/pdbize.cc b/modules/mol/alg/src/pdbize.cc
index 9e3638358..d6371e639 100644
--- a/modules/mol/alg/src/pdbize.cc
+++ b/modules/mol/alg/src/pdbize.cc
@@ -45,7 +45,7 @@ bool copy_atoms(ResidueView src_res, ResidueHandle dst_res, XCSEditor& edi,
 
     AtomHandle new_atom = edi.InsertAtom(dst_res, i->GetName(), 
                                          geom::Vec3(transform*i->GetPos()),
-                                         i->GetName(), i->GetOccupancy(), 
+                                         i->GetElement(), i->GetOccupancy(), 
                                          i->GetBFactor(), i->IsHetAtom());
     geom::Vec3 pos = new_atom.GetPos();
     for (int j = 0; j<3; ++j) {
-- 
GitLab