comparison 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
comparison
equal deleted inserted replaced
90:6086085e153d 91:2755ef2c8ef8
65 65
66 } 66 }
67 public int getMiddle(int segmentHeight, bool text) { 67 public int getMiddle(int segmentHeight, bool text) {
68 if (heights !is null && heights.size() > rowCounter) { 68 if (heights !is null && heights.size() > rowCounter) {
69 Integer [] rdata = arrayFromObject!(Integer)(heights.get(rowCounter)); 69 Integer [] rdata = arrayFromObject!(Integer)(heights.get(rowCounter));
70 int rheight = rdata[0].value; 70 int rheight = rdata[0].intValue();
71 int rleading = rdata[1].value; 71 int rleading = rdata[1].intValue();
72 if (text) 72 if (text)
73 return y + rheight/2 - segmentHeight/2 - rleading; 73 return y + rheight/2 - segmentHeight/2 - rleading;
74 return y + rheight/2 - segmentHeight/2; 74 return y + rheight/2 - segmentHeight/2;
75 } 75 }
76 return y; 76 return y;
77 } 77 }
78 public int getBaseline(int segmentHeight, bool text) { 78 public int getBaseline(int segmentHeight, bool text) {
79 if (heights !is null && heights.size()>rowCounter) { 79 if (heights !is null && heights.size()>rowCounter) {
80 Integer [] rdata = arrayFromObject!(Integer)(heights.get(rowCounter)); 80 Integer [] rdata = arrayFromObject!(Integer)(heights.get(rowCounter));
81 int rheight = rdata[0].value; 81 int rheight = rdata[0].intValue();
82 int rleading = rdata[1].value; 82 int rleading = rdata[1].intValue();
83 if (text) 83 if (text)
84 return y + rheight - segmentHeight - rleading; 84 return y + rheight - segmentHeight - rleading;
85 return y + rheight - segmentHeight; 85 return y + rheight - segmentHeight;
86 } 86 }
87 return y; 87 return y;