JAL-1421 last change tidied up properly
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 14 Jul 2020 16:08:01 +0000 (17:08 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 14 Jul 2020 16:08:01 +0000 (17:08 +0100)
src/jalview/gui/TreeCanvas.java

index baaec82..40cf080 100755 (executable)
@@ -381,7 +381,7 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable,
   {
     for (Entry<Object, Rectangle> entry : nameHash.entrySet())
     {
-      Rectangle rect = (Rectangle) nameHash.get(entry.getValue());
+      Rectangle rect = entry.getValue();
 
       if ((x >= rect.x) && (x <= (rect.x + rect.width)) && (y >= rect.y)
               && (y <= (rect.y + rect.height)))