Closed antonintlh closed 5 years ago
Hello!
I found a strange behavior on rings when disabling operation history.
I use setEnableOperHistory(false).
setEnableOperHistory(false)
const composer = new Kekule.Editor.Composer(document); composer.setEnableOperHistory(false);
When I draw a molecule with two or more rings (with rings buttons, not drawing them with bonds),
it gives me that strange smiles : c1cc(C)ccc1 (seems that only the first ring drawn is taken in account)
c1cc(C)ccc1
But when I comment out setEnableOperHistory(false), it gives me the correct smiles export: c1ccc(cc1)-c2ccccc2
c1ccc(cc1)-c2ccccc2
Some notes :
Kekule.IO.saveFormatData(molecule, 'mol'); Kekule.IO.saveFormatData(molecule, 'smi');
Thank you in advance for your help!
Antonin
Thanks a lot for the feedback, and sorry for he delay of replying. Anyway, the bug has been fixed now, please check the latest dist files, :).
Thank you for your help!
Hello!
I found a strange behavior on rings when disabling operation history.
I use
setEnableOperHistory(false)
.When I draw a molecule with two or more rings (with rings buttons, not drawing them with bonds),
it gives me that strange smiles :
c1cc(C)ccc1
(seems that only the first ring drawn is taken in account)But when I comment out
setEnableOperHistory(false)
, it gives me the correct smiles export:c1ccc(cc1)-c2ccccc2
Some notes :
Thank you in advance for your help!
Antonin