Skip to content

Commit 9f7562a

Browse files
committed
Don't show annotations on hidden atoms.
1 parent 2f3cea7 commit 9f7562a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

display/renderbasic/src/main/java/org/openscience/cdk/renderer/generators/standard/StandardGenerator.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,9 @@ private AtomSymbol[] generateAtomSymbols(IAtomContainer container,
560560
}
561561
}
562562

563-
String label = getAnnotationLabel(atom);
564-
563+
String label = null;
564+
if (!isHidden(atom))
565+
label = getAnnotationLabel(atom);
565566
if (label != null) {
566567

567568
// to ensure consistent draw distance we need to adjust the annotation distance

0 commit comments

Comments
 (0)