From: Stefan Csomor Date: Wed, 29 Aug 2012 12:16:36 +0000 (+0000) Subject: use global NSLayoutManager X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/85569194375daf3dfa5879248f579cb50d87bcd1?ds=inline use global NSLayoutManager git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/cocoa/listbox.mm b/src/osx/cocoa/listbox.mm index b30cb3642e..199363d247 100644 --- a/src/osx/cocoa/listbox.mm +++ b/src/osx/cocoa/listbox.mm @@ -321,10 +321,7 @@ protected: while (columnIndex--) [[(NSTableColumn *)[tableColumns objectAtIndex:columnIndex] dataCell] setFont:aFont]; - // todo introduce a common NSLayoutManager instance for all and use new method -#ifndef __LP64__ - [self setRowHeight:[aFont defaultLineHeightForFont]+2]; -#endif + [self setRowHeight:[gNSLayoutManager defaultLineHeightForFont:aFont]+2]; } - (void) setControlSize:(NSControlSize) size