Mercurial > projects > dwt-linux
changeset 172:f8e1b2d9e02f
more != in TestStyle
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 23 Feb 2008 18:35:06 +0100 |
parents | b7d87b56bbc7 |
children | dc54a7de268d |
files | dwt/graphics/TextStyle.d |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/dwt/graphics/TextStyle.d Sat Feb 23 18:23:33 2008 +0100 +++ b/dwt/graphics/TextStyle.d Sat Feb 23 18:35:06 2008 +0100 @@ -117,13 +117,13 @@ if (!(cast(TextStyle)object)) return false; TextStyle style = cast(TextStyle)object; if (foreground !is null) { - if ( foreground != style.foreground ) return false; + if ( foreground !is style.foreground ) return false; } else if (style.foreground !is null) return false; if (background !is null) { - if ( background != style.background ) return false; + if ( background !is style.background ) return false; } else if (style.background !is null) return false; if (font !is null) { - if (font != style.font) return false; + if (font !is style.font) return false; } else if (style.font !is null) return false; if (metrics !is null || style.metrics !is null) return false; if (underline !is style.underline) return false; @@ -186,7 +186,7 @@ if (buffer.length > startLength) buffer ~= ", "; buffer ~= "striked out"; } - if (rise != 0) { + if (rise !is 0) { if (buffer.length > startLength) buffer ~= ", "; buffer ~= "rise="; buffer ~= to!(char[])(rise);