From 85569194375daf3dfa5879248f579cb50d87bcd1 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 29 Aug 2012 12:16:36 +0000 Subject: [PATCH] use global NSLayoutManager git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/listbox.mm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.45.2