Mercurial > projects > dwt-linux
diff dwt/custom/TableCursor.d @ 238:380bad9f6852
reverted char[] to String
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:42:55 +0200 |
parents | f2e04420fd6c |
children | ce446666f5a2 |
line wrap: on
line diff
--- a/dwt/custom/TableCursor.d Sat Apr 26 10:01:30 2008 +0200 +++ b/dwt/custom/TableCursor.d Mon May 05 00:42:55 2008 +0200 @@ -12,6 +12,8 @@ *******************************************************************************/ module dwt.custom.TableCursor; +import dwt.dwthelper.utils; + import dwt.DWT; import dwt.DWTException; @@ -437,12 +439,12 @@ gc.drawImage(image, x, imageY); x += imageSize.width; } - char[] text = row.getText(columnIndex); + String text = row.getText(columnIndex); if (text.length > 0) { Rectangle bounds = row.getBounds(columnIndex); Point extent = gc.stringExtent(text); // Temporary code - need a better way to determine table trim - char[] platform = DWT.getPlatform(); + String platform = DWT.getPlatform(); if ("win32"==platform) { //$NON-NLS-1$ if (table.getColumnCount() is 0 || columnIndex is 0) { x += 2;