diff dwtx/jface/text/source/CompositeRuler.d @ 142:893c017bcdc5

instanceof
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 21:29:00 +0200
parents b6bad70d540a
children 02cd5f1224d3
line wrap: on
line diff
--- a/dwtx/jface/text/source/CompositeRuler.d	Sun Aug 24 21:25:28 2008 +0200
+++ b/dwtx/jface/text/source/CompositeRuler.d	Sun Aug 24 21:29:00 2008 +0200
@@ -670,7 +670,7 @@
             parent= extension.getControl();
         }
 
-        if (parent instanceof Composite && !parent.isDisposed())
+        if ( cast(Composite)parent  && !parent.isDisposed())
             (cast(Composite) parent).layout(true);
     }