Commit 42d0faa4 authored by Dmitry Kuznetsov's avatar Dmitry Kuznetsov Committed by Utkarsh Ayachit

Fixed "atom" reader for PDB format

Signed-off-by: default avatarDmitry Kuznetsov <>
parent 26be68fd
Pipeline #18633 passed with stage
......@@ -78,7 +78,8 @@ void vtkPDBReader::ReadSpecificMolecule(FILE* fp)
chain = linebuf[21];
sscanf(&linebuf[22], "%d", &resi);
sscanf(&linebuf[30],"%8f%8f%8f", x, x+1, x+2);
sscanf(&linebuf[76], "%2s", elem);
if (strlen(linebuf) > 55)
sscanf(&linebuf[76], "%2s", elem);
if (elem[0] == '\0')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment