--- a/XPMReader.st Thu Dec 04 00:07:59 2014 +0100
+++ b/XPMReader.st Thu Dec 04 02:29:39 2014 +0100
@@ -132,8 +132,8 @@
anImage photometric == #palette ifTrue:[
anImage colorMap size < 256 ifTrue:[^ true].
].
- anImage usedColors size < 256 ifTrue:[^ true].
- ('XPMReader [info]: too many colors in image.') infoPrintCR.
+ (anImage usedColorsMax:256) notNil ifTrue:[^ true].
+ ('XPMReader [info]: too many colors in image (only up to 256 supported).') infoPrintCR.
^ false
"Modified: 27.2.1997 / 12:40:22 / cg"
@@ -648,11 +648,12 @@
!XPMReader class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview2/XPMReader.st,v 1.65 2013-02-08 12:49:41 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview2/XPMReader.st,v 1.66 2014-12-04 01:29:39 cg Exp $'
!
version_CVS
- ^ '$Header: /cvs/stx/stx/libview2/XPMReader.st,v 1.65 2013-02-08 12:49:41 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview2/XPMReader.st,v 1.66 2014-12-04 01:29:39 cg Exp $'
! !
+
XPMReader initialize!