Revision: 557 Author: allain.lalonde Date: Fri Jul 24 07:18:27 2009 Log: Removed unnecessary check since all possible values of getButton() were covered there was no need to check for newButton == 0. http://code.google.com/p/piccolo2d/source/detail?r=557
Modified: /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java ======================================= --- /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java Fri Jul 24 07:16:41 2009 +++ /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java Fri Jul 24 07:18:27 2009 @@ -518,7 +518,7 @@ newButton = MouseEvent.BUTTON3; } - return (newButton == 0) ? rawEvent : buildModifiedMouseEvent(rawEvent, eventType, newButton); + return buildModifiedMouseEvent(rawEvent, eventType, newButton); } private boolean hasButtonModifier(final MouseEvent event, int buttonMask) { --~--~---------~--~----~------------~-------~--~----~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~----------~----~----~----~------~----~------~--~---