commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r1390267 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/PaletteFactory.java
Date Wed, 26 Sep 2012 03:21:15 GMT
Author: damjan
Date: Wed Sep 26 03:21:15 2012
New Revision: 1390267

URL: http://svn.apache.org/viewvc?rev=1390267&view=rev
Log:
Don't exceed the palette size.


Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/PaletteFactory.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/PaletteFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/PaletteFactory.java?rev=1390267&r1=1390266&r2=1390267&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/PaletteFactory.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/PaletteFactory.java
Wed Sep 26 03:21:15 2012
@@ -365,7 +365,7 @@ public class PaletteFactory {
             System.out.println("width * height: " + (width * height));
         }
 
-        subsets = divide(subsets, 256, table, precision);
+        subsets = divide(subsets, max, table, precision);
 
         if (debug) {
             System.out.println("subsets: " + subsets.size());



Mime
View raw message