Hi Pascal,

On 05/18/2011 04:46 PM, Pascal Auffinger wrote:
Thanks, could you do that and provide a binary ?

I can't provide a binary, sorry.

Or alternatively, could
you post precisely which line to change to what ? Or change it in the
source code so that we could download an updated version.

see attached patch (untested, since my build seems to be broken at the moment).

This an
important bug (at least for me). I and many others on the list don't
master C languages (oups ... Am i the only one ?)

for sure you're not the only one ;-)

Cheers,
  Thomas

--
Thomas Holder
MPI for Developmental Biology
Index: layer2/CoordSet.c
===================================================================
--- layer2/CoordSet.c	(revision 3948)
+++ layer2/CoordSet.c	(working copy)
@@ -678,6 +678,13 @@
   strcpy(resn, ai->resn);
   if(SettingGetGlobal_b(G, cSetting_pdb_truncate_residue_name)) {
     resn[3] = 0;                /* enforce 3-letter residue name in PDB files */
+    /* right-justify */
+    int i = strlen(resn);
+    if (i < 3) {
+      int j = 3;
+      while(i > 0) resn[--j] = resn[--i];
+      while(j > 0) resn[--j] = ' ';
+    }
   }
 
   if(SettingGetGlobal_b(G, cSetting_pdb_formal_charges)) {
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to