Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Nov 13, 2023
1 parent 1ebf20d commit 8b9aef5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions avogadro/io/pdbformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#include <avogadro/core/vector.h>

#include <cctype>
#include <istream>
#include <iostream>
#include <istream>
#include <string>

using Avogadro::Core::Array;
Expand Down Expand Up @@ -152,7 +152,7 @@ bool PdbFormat::read(std::istream& in, Core::Molecule& mol)
atomicNum = Elements::atomicNumberFromSymbol(element);
if (atomicNum == 255)
appendError("Invalid element");
}
}

if (atomicNum == 255) {
// non-standard or old-school PDB file - try to parse the atom name
Expand Down Expand Up @@ -224,9 +224,9 @@ bool PdbFormat::read(std::istream& in, Core::Molecule& mol)
else {
int b = lexicalCast<int>(buffer.substr(bCoords[i], 5), ok) - 1;
if (!ok) {
appendError("Failed to parse bond connection b" + std::to_string(i) +
" " + buffer.substr(bCoords[i], 5));
//return false;
appendError("Failed to parse bond connection b" +
std::to_string(i) + " " + buffer.substr(bCoords[i], 5));
// return false;
continue; // skip this invalid record
}

Expand Down

0 comments on commit 8b9aef5

Please sign in to comment.