Skip to content

Commit

Permalink
Correct bug in GetInchi
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismorl committed Oct 31, 2008
1 parent f33dd39 commit 03a7b1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2008-10-31 Chris Morley

* src/formats/getinchi.cpp: prevent failure when input contains
"InChI>InChI=...", which actually occurred in an SDF file.

2008-10-27 Chris Morley

* mcdlutil.cpp: Replace all calls to fabs with abs.
Expand Down
1 change: 1 addition & 0 deletions src/formats/getinchi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ string GetInChI(istream& is)
}
else
{
is.unget(); //It may be the start of a real "InChI="
result.erase();
state = before_inchi;
}
Expand Down

0 comments on commit 03a7b1c

Please sign in to comment.