aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2012-06-12 22:00:00 +1000
committernyamatongwe <nyamatongwe@gmail.com>2012-06-12 22:00:00 +1000
commite0a3ca05480971ffacc7981a3e9835d9a7618259 (patch)
tree3e55a94de3e4a8571e43dbc85debb5ece1f54f74
parent7fd6539ca25bdeaec066f7c25b488b6d96a36a74 (diff)
downloadscintilla-mirror-e0a3ca05480971ffacc7981a3e9835d9a7618259.tar.gz
Fix truncation of descenders and underscores in list box.
From Mike Lischke.
-rw-r--r--cocoa/PlatCocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index fc7d7c222..937edbf00 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -1611,7 +1611,7 @@ void ListBoxImpl::SetFont(Font& font_)
font.SetID(new QuartzTextStyle(*style));
NSFont *pfont = (NSFont *)style->getFontRef();
[[colText dataCell] setFont: pfont];
- CGFloat itemHeight = lround([pfont ascender] - [pfont descender]);
+ CGFloat itemHeight = ceil([pfont boundingRectForFont].size.height);
[table setRowHeight:itemHeight];
}