Revision 8682 org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.legend/org.gvsig.raster.lib.legend.impl/src/main/java/org/gvsig/raster/lib/legend/impl/DefaultColorInterpretation.java

View differences:

DefaultColorInterpretation.java
477 477
    public void copyFrom(ColorInterpretation colorInterpretation) {
478 478
        String[] oldColorInterpretation = new String[this.length()];
479 479
        System.arraycopy(this.colorInterpretation, 0, oldColorInterpretation, 0, length());
480

  
481
        this.colorInterpretation = new String[colorInterpretation.length()];
480 482
        System.arraycopy(colorInterpretation.getValues(), 0, this.colorInterpretation, 0, colorInterpretation.length());
481 483
        this.paletteBand = colorInterpretation.getPaletteBand();
482 484

  

Also available in: Unified diff