From: <sh...@us...> - 2006-04-25 13:50:12
|
Revision: 6073 Author: shk3 Date: 2006-04-25 06:49:52 -0700 (Tue, 25 Apr 2006) ViewCVS: http://svn.sourceforge.net/cdk/?rev=6073&view=rev Log Message: ----------- fixex non-highlighting of bonds when hovering Modified Paths: -------------- trunk/cdk/src/org/openscience/cdk/controller/AbstractController2D.java Modified: trunk/cdk/src/org/openscience/cdk/controller/AbstractController2D.java =================================================================== --- trunk/cdk/src/org/openscience/cdk/controller/AbstractController2D.java 2006-04-24 13:49:31 UTC (rev 6072) +++ trunk/cdk/src/org/openscience/cdk/controller/AbstractController2D.java 2006-04-25 13:49:52 UTC (rev 6073) @@ -1707,7 +1707,7 @@ } // logger.debug("closestBond "+ closestBond); int[] coords = GeometryTools.distanceCalculator( - GeometryTools.getBondCoordinates(closestBond), highlightRadius); + GeometryTools.getBondCoordinates(closestBond, r2dm.getRenderingCoordinates()), highlightRadius); int[] xCoords = {coords[0], coords[2], coords[4], coords[6]}; int[] yCoords = {coords[1], coords[3], coords[5], coords[7]}; if ((new Polygon(xCoords, yCoords, 4)).contains(new Point(X, Y))) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |