diff dwt/layout/FillLayout.d @ 8:a9ab4c738ed8

Fix: instanceof
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:32:39 +0200
parents e831403a80a9
children fbe68c33eeee
line wrap: on
line diff
--- a/dwt/layout/FillLayout.d	Wed Aug 27 14:30:35 2008 +0200
+++ b/dwt/layout/FillLayout.d	Wed Aug 27 14:32:39 2008 +0200
@@ -155,7 +155,7 @@
     } else {
         // TEMPORARY CODE
         int trimX, trimY;
-        if (control instanceof Scrollable) {
+        if ( null !is cast(Scrollable)control ) {
             Rectangle rect = (cast(Scrollable) control).computeTrim (0, 0, 0, 0);
             trimX = rect.width;
             trimY = rect.height;