Mercurial > projects > dwt2
changeset 91:2755ef2c8ef8
Fix compile for base type changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 19 Apr 2009 12:22:47 +0200 |
parents | 6086085e153d |
children | ebefa5c2eab4 |
files | org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/Locator.d org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/SelectionData.d |
diffstat | 2 files changed, 8 insertions(+), 8 deletions(-) [+] |
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;
--- a/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/SelectionData.d Sun Apr 19 11:33:55 2009 +0200 +++ b/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/SelectionData.d Sun Apr 19 12:22:47 2009 +0200 @@ -93,7 +93,7 @@ return isInverted(rowHeight) ? start.x:stop.x; } private bool isInverted(Locator locator) { - int rowHeight = arrayFromObject!(Integer)(locator.heights.get(locator.rowCounter))[0].value; + int rowHeight = arrayFromObject!(Integer)(locator.heights.get(locator.rowCounter))[0].intValue(); return isInverted(rowHeight); } private bool isInverted(int rowHeight) { @@ -112,7 +112,7 @@ public bool isSelectedRow(Locator locator) { if (!isEnclosed()) return false; - int rowHeight = arrayFromObject!(Integer)(locator.heights.get(locator.rowCounter))[0].value; + int rowHeight = arrayFromObject!(Integer)(locator.heights.get(locator.rowCounter))[0].intValue(); return isSelectedRow(locator.y, rowHeight); } public bool isSelectedRow(int y, int rowHeight) { @@ -124,7 +124,7 @@ public bool isFirstSelectionRow(Locator locator) { if (!isEnclosed()) return false; - int rowHeight = arrayFromObject!(Integer)(locator.heights.get(locator.rowCounter))[0].value; + int rowHeight = arrayFromObject!(Integer)(locator.heights.get(locator.rowCounter))[0].intValue(); return (locator.y + rowHeight >= getTopOffset() && locator.y <= getTopOffset()); } @@ -137,7 +137,7 @@ public bool isLastSelectionRow(Locator locator) { if (!isEnclosed()) return false; - int rowHeight = arrayFromObject!(Integer)(locator.heights.get(locator.rowCounter))[0].value; + int rowHeight = arrayFromObject!(Integer)(locator.heights.get(locator.rowCounter))[0].intValue(); return (locator.y + rowHeight >=getBottomOffset() && locator.y <= getBottomOffset()); }