From: <sh...@us...> - 2010-04-09 16:55:44
|
Revision: 15510 http://cdk.svn.sourceforge.net/cdk/?rev=15510&view=rev Author: shk3 Date: 2010-04-09 16:55:36 +0000 (Fri, 09 Apr 2010) Log Message: ----------- Element symbol was active with reaction arrow, that was not correct Modified Paths: -------------- jchempaint/trunk/src/main/org/openscience/jchempaint/JChemPaintPanel.java Modified: jchempaint/trunk/src/main/org/openscience/jchempaint/JChemPaintPanel.java =================================================================== --- jchempaint/trunk/src/main/org/openscience/jchempaint/JChemPaintPanel.java 2010-04-09 16:51:47 UTC (rev 15509) +++ jchempaint/trunk/src/main/org/openscience/jchempaint/JChemPaintPanel.java 2010-04-09 16:55:36 UTC (rev 15510) @@ -395,7 +395,7 @@ this.setLastActionButton(newActionButton); newActionButton.setBackground(Color.GRAY); } - if(JCPToolBar.getToolbarResourceString("lefttoolbar", getGuistring()).indexOf(newActiveModule.getID())>-1){ + if(JCPToolBar.getToolbarResourceString("lefttoolbar", getGuistring()).indexOf(newActiveModule.getID())>-1 && !newActiveModule.getID().equals("reactionArrow")){ if(this.buttons.get(this.get2DHub().getController2DModel().getDrawElement())!=null){ this.buttons.get(this.get2DHub().getController2DModel().getDrawElement()).setBackground(Color.GRAY); lastSecondaryButton = this.buttons.get(this.get2DHub().getController2DModel().getDrawElement()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |