Skip to content

Commit

Permalink
Merge pull request #2601 from flatstik/flatstik-patch-1
Browse files Browse the repository at this point in the history
Fixed alignment of partial charges for PDBQT-files
  • Loading branch information
ghutchis committed Jul 14, 2023
2 parents ef2b499 + 3048639 commit f495cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formats/pdbqtformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ namespace OpenBabel
}

double charge = atom->GetPartialCharge();
snprintf(buffer, BUFF_SIZE, "%s%5d %-4s %-3s %c%4d%c %8.3f%8.3f%8.3f 0.00 0.00 %+5.3f %.2s",
snprintf(buffer, BUFF_SIZE, "%s%5d %-4s %-3s %c%4d%c %8.3f%8.3f%8.3f 0.00 0.00 %+8.3f %-2.2s",
het?"HETATM":"ATOM ",
index,
type_name,
Expand Down

0 comments on commit f495cc6

Please sign in to comment.