Skip to content
Snippets Groups Projects
Commit 258a58d2 authored by marco's avatar marco
Browse files

fix bug in shift_left

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2496 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent a8188939
No related branches found
No related tags found
No related merge requests found
...@@ -39,12 +39,14 @@ namespace { ...@@ -39,12 +39,14 @@ namespace {
bool shift_left(const String& atom_name, bool is_hetatm, bool shift_left(const String& atom_name, bool is_hetatm,
const String& element, float mass) const String& element, float mass)
{ {
if (atom_name.length()==4) {
return true;
}
if (is_hetatm==false) { if (is_hetatm==false) {
return false; return false;
} }
if (isdigit(atom_name[0]) || atom_name=="UNK" || if (isdigit(atom_name[0]) || atom_name=="UNK") {
atom_name.length()==4) {
return true; return true;
} }
if (mass>34) { if (mass>34) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment