summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Wey2013-02-14 22:07:00 +0100
committerMike Wey2013-02-14 22:07:00 +0100
commit4ee3064488597e65569acae10492ddd007851288 (patch)
tree092324102bab05ae1162fc70446ae7e6e5c5edef
parent20c9f7c2cca015a8ed57f4380045e745009291d2 (diff)
coderInfoList was not filtering corectly for MatchType.True.
-rw-r--r--dmagick/CoderInfo.d9
1 files changed, 9 insertions, 0 deletions
diff --git a/dmagick/CoderInfo.d b/dmagick/CoderInfo.d
index e003763..d37e54b 100644
--- a/dmagick/CoderInfo.d
+++ b/dmagick/CoderInfo.d
@@ -39,12 +39,21 @@ CoderInfo[] coderInfoList(MatchType readable, MatchType writable, MatchType mult
if ( readable == MatchType.False && coder.readable )
continue;
+ if ( readable == MatchType.True && !coder.readable )
+ continue;
+
if ( writable == MatchType.False && coder.writable )
continue;
+ if ( writable == MatchType.True && !coder.writable )
+ continue;
+
if ( multiFrame == MatchType.False && coder.supportsMultiFrame )
continue;
+ if ( multiFrame == MatchType.True && !coder.supportsMultiFrame )
+ continue;
+
list ~= coder;
}