From a98b434e9fc569319d76b2f0a24bce6fbc7521bb Mon Sep 17 00:00:00 2001 From: Jack Day Date: Sun, 8 Dec 2024 20:32:28 +1000 Subject: [PATCH] When recalculating coordinates some of the stereo chem is not updated inside the mol. Setting prepareMolsBeforeDrawing seems to fix this --- rdeditor/molViewWidget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdeditor/molViewWidget.py b/rdeditor/molViewWidget.py index 8cd606f..7e608f0 100644 --- a/rdeditor/molViewWidget.py +++ b/rdeditor/molViewWidget.py @@ -314,7 +314,7 @@ def getMolSvg(self): rdMolDraw2D.SetDarkMode(opts) if (not self.molecule_sanitizable) and self.unsanitizable_background_colour: opts.setBackgroundColour(self.unsanitizable_background_colour) - opts.prepareMolsBeforeDrawing = False + opts.prepareMolsBeforeDrawing = True opts.addStereoAnnotation = True # Show R/S and E/Z # for tag in chiraltags: # idx = tag[0]