Mercurial > projects > dwt-win
diff dwt/widgets/TreeColumn.d @ 218:c749c13479ef
rebuild some function to work again with heap RECT. Also some overrides
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 18 May 2008 19:57:18 +0200 |
parents | 36f5cb12e1a2 |
children | e2affbeb686d |
line wrap: on
line diff
--- a/dwt/widgets/TreeColumn.d Sun May 18 19:54:28 2008 +0200 +++ b/dwt/widgets/TreeColumn.d Sun May 18 19:57:18 2008 +0200 @@ -366,7 +366,7 @@ } else { auto hFont = item.fontHandle (index); if (hFont !is cast(HFONT)-1) hFont = OS.SelectObject (hDC, hFont); - RECT itemRect = item.getBounds (index, true, true, false, false, false, hDC); + RECT* itemRect = item.getBounds (index, true, true, false, false, false, hDC); if (hFont !is cast(HFONT)-1) OS.SelectObject (hDC, hFont); itemRight = itemRect.right; } @@ -659,7 +659,7 @@ override public void setText (String string) { checkWidget (); if (string is null) error (DWT.ERROR_NULL_ARGUMENT); - if (string==/*eq*/text) return; + if (string.equals (text)) return; int index = parent.indexOf (this); if (index is -1) return; super.setText (string);