diff dwt/internal/image/PngPlteChunk.d @ 213:36f5cb12e1a2

Update to SWT 3.4M7
author Frank Benoit <benoit@tionex.de>
date Sat, 17 May 2008 17:34:28 +0200
parents ab60f3309436
children 0e2b4fed7a0f
line wrap: on
line diff
--- a/dwt/internal/image/PngPlteChunk.d	Mon May 05 00:12:38 2008 +0200
+++ b/dwt/internal/image/PngPlteChunk.d	Sat May 17 17:34:28 2008 +0200
@@ -12,6 +12,8 @@
  *******************************************************************************/
 module dwt.internal.image.PngPlteChunk;
 
+import dwt.dwthelper.utils;
+
 
 import dwt.DWT;
 import dwt.graphics.PaletteData;
@@ -21,7 +23,6 @@
 import dwt.internal.image.PngIhdrChunk;
 
 import tango.text.convert.Format;
-import dwt.dwthelper.utils;
 
 class PngPlteChunk : PngChunk {
 
@@ -111,7 +112,7 @@
 
     // Palette chunks' data fields must be event multiples
     // of 3. Each 3-byte group represents an RGB value.
-    if (getLength() % 3 !is 0) DWT.error(DWT.ERROR_INVALID_IMAGE);
+    if (getLength() % 3 !is 0) DWT.error(DWT.ERROR_INVALID_IMAGE);  
 
     // Palettes cannot have more entries than 2^bitDepth
     // where bitDepth is the bit depth of the image given