Mercurial > projects > dwt-linux
diff dwt/accessibility/AccessibleObject.d @ 195:e0ffca35fe59
Fix: more ==/is
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 06 Mar 2008 10:08:53 +0100 |
parents | de2578a843a7 |
children | d5b1c263ee37 |
line wrap: on
line diff
--- a/dwt/accessibility/AccessibleObject.d Thu Mar 06 09:59:42 2008 +0100 +++ b/dwt/accessibility/AccessibleObject.d Thu Mar 06 10:08:53 2008 +0100 @@ -863,7 +863,7 @@ } case ATK.ATK_TEXT_BOUNDARY_LINE_START: { int lineStart1 = locate( text, '\n' ); - if( lineStart1 == text.length ) lineStart1 = -1; + if( lineStart1 is text.length ) lineStart1 = -1; if (lineStart1 is -1) { startBounds = endBounds = length; break; @@ -875,7 +875,7 @@ } startBounds = lineStart1; int lineStart2 = locate( text, '\n' ); - if( lineStart2 == text.length ) lineStart2 = -1; + if( lineStart2 is text.length ) lineStart2 = -1; if (lineStart2 is -1) { endBounds = length; break;