sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1558579 - /sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/referencing/crs/DefaultCompoundCRS.java
Date Wed, 15 Jan 2014 21:54:39 GMT
Author: desruisseaux
Date: Wed Jan 15 21:54:39 2014
New Revision: 1558579

URL: http://svn.apache.org/r1558579
Log:
Missing check.

Modified:
    sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/referencing/crs/DefaultCompoundCRS.java

Modified: sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/referencing/crs/DefaultCompoundCRS.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/referencing/crs/DefaultCompoundCRS.java?rev=1558579&r1=1558578&r2=1558579&view=diff
==============================================================================
--- sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/referencing/crs/DefaultCompoundCRS.java
[UTF-8] (original)
+++ sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/referencing/crs/DefaultCompoundCRS.java
[UTF-8] Wed Jan 15 21:54:39 2014
@@ -331,7 +331,9 @@ public class DefaultCompoundCRS extends 
                 components[i] = component;
             }
             if (changed) {
-                Arrays.sort(components, SubTypes.BY_TYPE); // This array typically has less
than 4 elements.
+                if (convention == AxesConvention.NORMALIZED) {
+                    Arrays.sort(components, SubTypes.BY_TYPE); // This array typically has
less than 4 elements.
+                }
                 crs = new DefaultCompoundCRS(IdentifiedObjects.getProperties(this, IDENTIFIERS_KEY),
components);
             }
             derived.put(convention, crs);



Mime
View raw message