changeset 172:0459ffa88f7d

more != in TextStyle
author Frank Benoit <benoit@tionex.de>
date Sat, 23 Feb 2008 18:35:46 +0100
parents 487072cb0473
children 97c2675aca38
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: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);