Mercurial > projects > dwt-win
diff dwt/graphics/Font.d @ 203:8313535d74fa
Fix bug in FontMetrics, must be value type to hold values not by ref.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 14 Apr 2008 02:07:22 +0200 |
parents | 184ab53b7785 |
children | ab60f3309436 |
line wrap: on
line diff
--- a/dwt/graphics/Font.d Sat Apr 12 17:50:15 2008 +0200 +++ b/dwt/graphics/Font.d Mon Apr 14 02:07:22 2008 +0200 @@ -203,7 +203,7 @@ */ public FontData[] getFontData() { if (isDisposed()) DWT.error(DWT.ERROR_GRAPHIC_DISPOSED); - LOGFONT* logFont = new LOGFONT();; + LOGFONT* logFont = new LOGFONT(); OS.GetObject(handle, LOGFONT.sizeof, logFont); return [ cast(FontData) FontData.win32_new(logFont, device.computePoints(logFont, handle))]; }