X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18d5c52d673948d33e7bfbaab7f9ef1e1610d10e..ab67e8874db324fab5223cc8d5dff8a8de3e2b77:/src/osx/cocoa/listbox.mm diff --git a/src/osx/cocoa/listbox.mm b/src/osx/cocoa/listbox.mm index 7308eac8a3..199363d247 100644 --- a/src/osx/cocoa/listbox.mm +++ b/src/osx/cocoa/listbox.mm @@ -321,8 +321,7 @@ protected: while (columnIndex--) [[(NSTableColumn *)[tableColumns objectAtIndex:columnIndex] dataCell] setFont:aFont]; - // todo introduce a common NSLayoutManager instance for all and use new method - [self setRowHeight:[aFont defaultLineHeightForFont]+2]; + [self setRowHeight:[gNSLayoutManager defaultLineHeightForFont:aFont]+2]; } - (void) setControlSize:(NSControlSize) size