diff options
author | nyamatongwe <unknown> | 2011-06-04 21:22:30 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-06-04 21:22:30 +1000 |
commit | f2c9652692aa996a5739b41d2d893cdc4077e754 (patch) | |
tree | 0913213502d2447ae1e8c09c0830f832d2a8e70f | |
parent | 147fea4aa8f74c72086ee3d416e24982bd8b3a52 (diff) | |
download | scintilla-mirror-f2c9652692aa996a5739b41d2d893cdc4077e754.tar.gz |
Fixed compilation failure retrieving NSFont* from Font.
-rw-r--r-- | cocoa/PlatCocoa.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index a9ac95461..83ef691e5 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -1456,7 +1456,8 @@ void ListBoxImpl::SetFont(Font& font_) font.SetID(font_.GetID()); // NSCell setFont takes an NSFont* rather than a CTFontRef but they // are the same thing toll-free bridged. - NSFont* pfont = (NSFont*)FontRef(font_); + QuartzTextStyle* style = reinterpret_cast<QuartzTextStyle*>(font_.GetID()); + NSFont *pfont = (NSFont *)style->getFontRef(); [[colText dataCell] setFont: pfont]; CGFloat itemHeight = lround([pfont ascender] - [pfont descender]); [table setRowHeight:itemHeight]; |