indigo icon indicating copy to clipboard operation
indigo copied to clipboard

Memory exception while rendering a RXN file as CDXML

Open abhimanyusirohi opened this issue 11 years ago • 0 comments

I think the code that renders a reaction file to CDXML is missing from: "indigo/render2d/src/render_cdxml.cpp".

The method RenderParamCdxmlInterface::render is responsible for rendering CDXML format for both molecules and reactions but the code only considers params.mols structure. There is no usage of params.rxns that contains reaction components.

To reproduce:

  • Read a reaction file
  • set indigoSetOption("render-output-format", "cdxml");
  • Write a CDXML file using indigoRender or indigoRenderToFile
  • Memory exception occurs. Fails at (_getBounds(params, mols[i]->asMolecule(), p.str_min, p.str_max, p.scale);

abhimanyusirohi avatar Aug 02 '14 07:08 abhimanyusirohi