diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/LZWCodec.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/LZWCodec.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/LZWCodec.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/LZWCodec.java index 025ce9dd59..4f88acdbbb 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/LZWCodec.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/LZWCodec.java @@ -394,8 +394,7 @@ void nextPutPixels(byte[] buf) { if (image.depth == 8) { // Slight optimization for depth = 8. int start = line * image.bytesPerLine; - for (int i = 0; i < imageWidth; i++) - image.data[start + i] = buf[i]; + System.arraycopy(buf, 0, image.data, start, imageWidth); } else { image.setPixels(0, line, imageWidth, buf, 0); } |