Return-Path: Delivered-To: apmail-xml-batik-dev-archive@xml.apache.org Received: (qmail 76063 invoked by uid 500); 19 Jun 2002 08:15:28 -0000 Mailing-List: contact batik-dev-help@xml.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: batik-dev@xml.apache.org Delivered-To: mailing list batik-dev@xml.apache.org Received: (qmail 76051 invoked by uid 500); 19 Jun 2002 08:15:27 -0000 Delivered-To: apmail-xml-batik-cvs@apache.org Date: 19 Jun 2002 08:15:26 -0000 Message-ID: <20020619081526.93593.qmail@icarus.apache.org> From: tkormann@apache.org To: xml-batik-cvs@apache.org Subject: cvs commit: xml-batik/sources/org/apache/batik/gvt/event AWTEventDispatcher.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N tkormann 2002/06/19 01:15:26 Modified: sources/org/apache/batik/bridge BridgeEventSupport.java sources/org/apache/batik/gvt/event AWTEventDispatcher.java Log: fix bug with screen coordinates Revision Changes Path 1.42 +4 -1 xml-batik/sources/org/apache/batik/bridge/BridgeEventSupport.java Index: BridgeEventSupport.java =================================================================== RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/BridgeEventSupport.java,v retrieving revision 1.41 retrieving revision 1.42 diff -u -r1.41 -r1.42 --- BridgeEventSupport.java 14 Jun 2002 08:43:11 -0000 1.41 +++ BridgeEventSupport.java 19 Jun 2002 08:15:26 -0000 1.42 @@ -150,6 +150,9 @@ GraphicsNodeKeyEvent evt) { Element targetElement = (Element)context.getFocusManager().getCurrentEventTarget(); + if (targetElement == null) { + return; + } DocumentEvent d = (DocumentEvent)targetElement.getOwnerDocument(); DOMKeyEvent keyEvt = (DOMKeyEvent)d.createEvent("KeyEvents"); keyEvt.initKeyEvent(eventType, 1.9 +3 -1 xml-batik/sources/org/apache/batik/gvt/event/AWTEventDispatcher.java Index: AWTEventDispatcher.java =================================================================== RCS file: /home/cvs/xml-batik/sources/org/apache/batik/gvt/event/AWTEventDispatcher.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- AWTEventDispatcher.java 12 Jun 2002 12:02:51 -0000 1.8 +++ AWTEventDispatcher.java 19 Jun 2002 08:15:26 -0000 1.9 @@ -355,6 +355,8 @@ // If the receiving node has changed, send a notification // check if we enter a new node Point screenPos = evt.getComponent().getLocationOnScreen(); + screenPos.x += evt.getX(); + screenPos.y += evt.getY(); if (lastHit != node) { // post an MOUSE_EXITED if (lastHit != null) { --------------------------------------------------------------------- To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org For additional commands, e-mail: batik-dev-help@xml.apache.org