From b0ef077e4801668d0c4fc59a9e19fcc981480d71 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Tue, 12 Aug 2014 15:12:19 +0200 Subject: [PATCH] fix typesetter nil bug --- AppKit/CPTextView/CPTypesetter.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPTextView/CPTypesetter.j b/AppKit/CPTextView/CPTypesetter.j index 11b623f41..04dbfee74 100755 --- a/AppKit/CPTextView/CPTypesetter.j +++ b/AppKit/CPTextView/CPTypesetter.j @@ -148,7 +148,7 @@ var CPSystemTypesetterFactory; + (id)sharedInstance { - if (_sharedSimpleTypesetter === nil) + if (!_sharedSimpleTypesetter) _sharedSimpleTypesetter = [[CPSimpleTypesetter alloc] init]; return _sharedSimpleTypesetter;