Skip to content
Snippets Groups Projects
Commit fa58d88e authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Fix #592

parent de1a304f
No related branches found
No related tags found
No related merge requests found
......@@ -532,6 +532,7 @@ bool PDB::readFromFilepointer(FILE *fp,bool naturalUnits,double scale) {
int result;
auto trimmed=serial;
Tools::trim(trimmed);
while(trimmed.length()<5) trimmed = std::string(" ") + trimmed;
const char* errmsg = h36::hy36decode(5, trimmed.c_str(),trimmed.length(), &result);
if(errmsg) {
std::string msg(errmsg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment