From 0997bfe67a8800a07570c349bffb38afeb4afffa Mon Sep 17 00:00:00 2001
From: Tobias Schmidt <tobias.schmidt@unibas.ch>
Date: Fri, 1 Jul 2011 15:02:27 +0200
Subject: [PATCH] fixed CHARMM dialect PDBWriter (BZDNG-275)

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

diff --git a/modules/io/src/mol/pdb_writer.cc b/modules/io/src/mol/pdb_writer.cc
index 98022a0a5..ffbd145fa 100644
--- a/modules/io/src/mol/pdb_writer.cc
+++ b/modules/io/src/mol/pdb_writer.cc
@@ -92,7 +92,7 @@ void write_atom(std::ostream& ostr, FormattedLine& line,
                         "' is too long for CHARMM-PDB output. At most 4 "
                         "characters are allowed");
     }
-    line(17, 4)=fmt::LPadded(res.GetKey());
+    line(17, 4)=fmt::RPadded(res.GetKey());
   } else {
     if (res.GetKey().size()>3) {
       throw IOException("Residue name '"+res.GetName()+
-- 
GitLab