Skip to content

Commit

Permalink
[bug:1274] added conditional to ensure that when multiple bond stereo…
Browse files Browse the repository at this point in the history
… is specified as attributes and characters only one is used. This is achieved by using the existing flag to determine if a stereo bond value has already been provided.

Change-Id: I2a4e64b1df2cbfdc5a3dfe5d8ff9a13c11f94e98
Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
johnmay authored and egonw committed Nov 7, 2012
1 parent 9fb2dd3 commit 0e97eff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/org/openscience/cdk/io/cml/CMLCoreModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ public void endElement(CMLStack xpath, String uri, String name, String raw) {
formalCharges.add(charge);
}
} else if ("bondStereo".equals(name)){
if(!currentChars.isEmpty()){
if(!currentChars.isEmpty() && !stereoGiven){
bondStereo.add(currentChars);
stereoGiven = Boolean.TRUE;
}
Expand Down

0 comments on commit 0e97eff

Please sign in to comment.