diff org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/Locator.d @ 91:2755ef2c8ef8

Fix compile for base type changes
author Frank Benoit <benoit@tionex.de>
date Sun, 19 Apr 2009 12:22:47 +0200
parents bc29606a740c
children
line wrap: on
line diff
--- a/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/Locator.d	Sun Apr 19 11:33:55 2009 +0200
+++ b/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/Locator.d	Sun Apr 19 12:22:47 2009 +0200
@@ -67,8 +67,8 @@
     public int getMiddle(int segmentHeight, bool text) {
         if (heights !is null && heights.size() > rowCounter) {
             Integer [] rdata = arrayFromObject!(Integer)(heights.get(rowCounter));
-            int rheight = rdata[0].value;
-            int rleading = rdata[1].value;
+            int rheight = rdata[0].intValue();
+            int rleading = rdata[1].intValue();
             if (text)
                 return y + rheight/2 - segmentHeight/2 - rleading;
             return y + rheight/2 - segmentHeight/2;
@@ -78,8 +78,8 @@
     public int getBaseline(int segmentHeight, bool text) {
         if (heights !is null && heights.size()>rowCounter) {
             Integer [] rdata = arrayFromObject!(Integer)(heights.get(rowCounter));
-            int rheight = rdata[0].value;
-            int rleading = rdata[1].value;
+            int rheight = rdata[0].intValue();
+            int rleading = rdata[1].intValue();
             if (text)
                 return y + rheight - segmentHeight - rleading;
             return y + rheight - segmentHeight;