Mercurial > projects > dwt-addons
comparison dwtx/jface/text/TextSelection.d @ 134:51e6e63f930e
Regex fix for casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:46:20 +0200 |
parents | 7d818bd32d63 |
children | 75302ef3f92f |
comparison
equal
deleted
inserted
replaced
133:7d818bd32d63 | 134:51e6e63f930e |
---|---|
300 return true; | 300 return true; |
301 | 301 |
302 if (obj is null || getClass() !is obj.getClass()) | 302 if (obj is null || getClass() !is obj.getClass()) |
303 return false; | 303 return false; |
304 | 304 |
305 TextSelection s= (TextSelection) obj; | 305 TextSelection s= cast(TextSelection) obj; |
306 bool sameRange= (s.fOffset is fOffset && s.fLength is fLength); | 306 bool sameRange= (s.fOffset is fOffset && s.fLength is fLength); |
307 if (sameRange) { | 307 if (sameRange) { |
308 | 308 |
309 if (s.fDocument is null && fDocument is null) | 309 if (s.fDocument is null && fDocument is null) |
310 return true; | 310 return true; |