fontpanel color well fix

This commit is contained in:
daboe01 committed 2015-06-06 19:03:37 +02:00
1 parent b1ed299286
commit 4987fb5f15
2 files changed
+11 -1

No files matched your search

+1 -1
View File
@@ -248,7 +248,7 @@ var _availableTraits= [@"Normal", @"Italic", @"Bold", @"Bold Italic"],
if (![self isVisible])
return;
var attribs = [textView typingAttributes],
var attribs = [textView _attributesForFontPanel],
font = [attribs objectForKey:CPFontAttributeName] || [[textView textStorage] font] || [CPFont systemFontOfSize:12.0],
color = [attribs objectForKey:CPForegroundColorAttributeName];