abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r940218 - /abdera/java/trunk/extensions/geo/src/main/java/org/apache/abdera/ext/geo/Multiple.java
Date Sun, 02 May 2010 13:32:00 GMT
Author: antelder
Date: Sun May  2 13:32:00 2010
New Revision: 940218

URL: http://svn.apache.org/viewvc?rev=940218&view=rev
Log:
Fix GeoRSS extension from Nathan Reese on ML - http://www.mail-archive.com/dev@abdera.apache.org/msg00259.html

Modified:
    abdera/java/trunk/extensions/geo/src/main/java/org/apache/abdera/ext/geo/Multiple.java

Modified: abdera/java/trunk/extensions/geo/src/main/java/org/apache/abdera/ext/geo/Multiple.java
URL: http://svn.apache.org/viewvc/abdera/java/trunk/extensions/geo/src/main/java/org/apache/abdera/ext/geo/Multiple.java?rev=940218&r1=940217&r2=940218&view=diff
==============================================================================
--- abdera/java/trunk/extensions/geo/src/main/java/org/apache/abdera/ext/geo/Multiple.java
(original)
+++ abdera/java/trunk/extensions/geo/src/main/java/org/apache/abdera/ext/geo/Multiple.java
Sun May  2 13:32:00 2010
@@ -119,7 +119,7 @@ public abstract class Multiple 
   }
   
   private void check179(double d1, double d2) {
-    if (Math.max(d1, d2)-Math.min(d1,d2) > 179) 
+    if (Math.abs(Math.max(d1, d2))-Math.abs(Math.min(d1,d2)) > 179) 
       throw new RuntimeException("Values are greater than 179 degrees");
   }
 }



Mime
View raw message