Skip to content

Commit

Permalink
tweaked method of determining whether to display atoms.
Browse files Browse the repository at this point in the history
When an atom has 0 bonds, always display.
(We cannot rely on 'valence' because it's always present.)
  • Loading branch information
ChemMitch committed May 31, 2024
1 parent 156cc40 commit 6552b2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ public void renderChem(Graphics2D g9, Chemical c, int x, int y, int width, int h
}

//MM experiment 30 May 2024
if(ca.getValence().isPresent()) {
if(ca.getBonds().size()==0) {
forceDraw = true;
}
if (!attatch.equals("")) {
Expand Down

0 comments on commit 6552b2b

Please sign in to comment.