From: <eg...@us...> - 2006-08-05 16:58:48
|
Revision: 6746 Author: egonw Date: 2006-08-05 09:58:43 -0700 (Sat, 05 Aug 2006) ViewCVS: http://svn.sourceforge.net/cdk/?rev=6746&view=rev Log Message: ----------- Compile fix. Modified Paths: -------------- trunk/cdk/src/org/openscience/cdk/applications/jchempaint/action/CleanupAction.java Modified: trunk/cdk/src/org/openscience/cdk/applications/jchempaint/action/CleanupAction.java =================================================================== --- trunk/cdk/src/org/openscience/cdk/applications/jchempaint/action/CleanupAction.java 2006-08-05 16:58:14 UTC (rev 6745) +++ trunk/cdk/src/org/openscience/cdk/applications/jchempaint/action/CleanupAction.java 2006-08-05 16:58:43 UTC (rev 6746) @@ -84,13 +84,13 @@ logger.info("Going to performe a clean up..."); if (jcpPanel.getJChemPaintModel() != null) { + JChemPaintModel jcpmodel = jcpPanel.getJChemPaintModel(); if (diagramGenerator == null) { diagramGenerator = new StructureDiagramGenerator(); diagramGenerator.setTemplateHandler( - new TemplateHandler() + new TemplateHandler(jcpmodel.getChemModel().getBuilder()) ); } - JChemPaintModel jcpmodel = jcpPanel.getJChemPaintModel(); Renderer2DModel renderModel = jcpmodel.getRendererModel(); double bondLength = renderModel.getBondLength() / renderModel.getScaleFactor(); diagramGenerator.setBondLength(bondLength * 2.0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |