diff dwtx/jface/text/PropagatingFontFieldEditor.d @ 138:b6bad70d540a

Regex instanceof changes
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 02:26:23 +0200
parents 65801ad2b265
children eb21d3dfc767
line wrap: on
line diff
--- a/dwtx/jface/text/PropagatingFontFieldEditor.d	Sun Aug 24 02:22:48 2008 +0200
+++ b/dwtx/jface/text/PropagatingFontFieldEditor.d	Sun Aug 24 02:26:23 2008 +0200
@@ -230,7 +230,7 @@
     private void checkForDefault() {
         if (presentsDefaultValue()) {
             Control c= getValueControl(fParent);
-            if (c instanceof Label)
+            if ( cast(Label)c )
                 (cast(Label) c).setText(fDefaultFontLabel);
         }
     }