Return-Path: Delivered-To: apmail-xmlgraphics-batik-users-archive@www.apache.org Received: (qmail 37671 invoked from network); 5 Aug 2008 13:44:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Aug 2008 13:44:38 -0000 Received: (qmail 34465 invoked by uid 500); 5 Aug 2008 13:44:33 -0000 Delivered-To: apmail-xmlgraphics-batik-users-archive@xmlgraphics.apache.org Received: (qmail 34455 invoked by uid 500); 5 Aug 2008 13:44:33 -0000 Mailing-List: contact batik-users-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: batik-users@xmlgraphics.apache.org Delivered-To: mailing list batik-users@xmlgraphics.apache.org Received: (qmail 34420 invoked by uid 99); 5 Aug 2008 13:44:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 06:44:33 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=RCVD_ILLEGAL_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [58.108.164.176] (HELO mailbox.clearboxsystems.com.au) (58.108.164.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 13:43:37 +0000 Received: from localhost (localhost [127.0.0.1]) by mailbox.clearboxsystems.com.au (Postfix) with ESMTP id 7782D117439E for ; Tue, 5 Aug 2008 23:43:14 +1000 (EST) X-Virus-Scanned: amavisd-new at X-Spam-Score: -1.087 X-Spam-Level: Received: from mailbox.clearboxsystems.com.au ([127.0.0.1]) by localhost (mailbox.clearboxsystems.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MU22fZmFHv-a for ; Tue, 5 Aug 2008 23:43:13 +1000 (EST) Received: from mailbox.clearboxsystems.com.au (mailbox.clearboxsystems.com.au [127.0.1.1]) by mailbox.clearboxsystems.com.au (Postfix) with ESMTP id D9A3B117439C for ; Tue, 5 Aug 2008 23:43:13 +1000 (EST) Date: Tue, 5 Aug 2008 23:43:13 +1000 (EST) From: Paul Solomon To: batik-users Message-ID: <21215786.1881217943793752.JavaMail.root@mailbox> In-Reply-To: <20866394.1861217943680944.JavaMail.root@mailbox> Subject: Bugfix MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [124.168.163.44] X-Mailer: Zimbra 5.0.8_GA_2462.UBUNTU6 (ZimbraWebClient - IE7 (Win)/5.0.8_GA_2462.UBUNTU6) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: NO X-Old-Spam-Status: No, score=-1.087 tagged_above=-10 required=6.6 tests=[AWL=-0.370, BAYES_00=-2.599, RCVD_IN_PBL=0.905, RCVD_IN_SORBS_DUL=0.877, RDNS_NONE=0.1] Hi All, What is the best way to submit bugfixes? I have found one so far working with batik in the following file. The fix is below org.apache.batik.util.PreferenceManager public Point getPoint(String key) { Point defaultValue = (Point)getDefault(key); String sp = internal.getProperty(key); if (sp == null) { return defaultValue; } Point result = new Point(); try { int x, y; String token; StringTokenizer st = new StringTokenizer(sp," ", false); if (!st.hasMoreTokens()) { // the value is not correctly formated => remove it internal.remove(key); return defaultValue; } token = st.nextToken(); x = Integer.parseInt(token); if (!st.hasMoreTokens()) { internal.remove(key); return defaultValue; } token = st.nextToken(); y = Integer.parseInt(token); // ------------- BUG ----- These 4 lines should be removed // if (!st.hasMoreTokens()) { // internal.remove(key); // return defaultValue; // } result.setLocation(x,y); return result; } catch (NumberFormatException e) { internal.remove(key); return defaultValue; } } Regards, Paul --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org