# HG changeset patch # User Frank Benoit # Date 1203788146 -3600 # Node ID 0459ffa88f7dcec80a77282623df95a3d38ed66f # Parent 487072cb0473e419b88073378245af47afe7f271 more != in TextStyle diff -r 487072cb0473 -r 0459ffa88f7d dwt/graphics/TextStyle.d --- a/dwt/graphics/TextStyle.d Sat Feb 23 18:12:20 2008 +0100 +++ b/dwt/graphics/TextStyle.d Sat Feb 23 18:35:46 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);