xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r447315 - /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/ImageWriterRegistry.java
Date Mon, 18 Sep 2006 08:04:08 GMT
Author: jeremias
Date: Mon Sep 18 01:04:07 2006
New Revision: 447315

URL: http://svn.apache.org/viewvc?view=rev&rev=447315
Log:
Funny, why didn't I realize that the sorting didn't occur as it should have? Higher values
in the priority file now mean higher priority. The effect: Image IO codecs are now properly
preferred over the internal codecs. In a Sun JDK 1.3 environment, the internal ImageWriters
will be chosen.

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/ImageWriterRegistry.java

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/ImageWriterRegistry.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/ImageWriterRegistry.java?view=diff&rev=447315&r1=447314&r2=447315
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/ImageWriterRegistry.java
(original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/ImageWriterRegistry.java
Mon Sep 18 01:04:07 2006
@@ -124,7 +124,7 @@
         li = entries.listIterator();
         while (li.hasNext()) {
             ImageWriter w = (ImageWriter)li.next();
-            if (getPriority(w) > priority) {
+            if (getPriority(w) < priority) {
                 li.previous();
                 li.add(writer);
                 return;



---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message