Fixed: Check if the correct delegate method is implemented before calling it

This commit is contained in:
Martin Carlberg committed 2018-01-08 13:47:45 +01:00
1 parent 679acfb239
commit 1ee9a3f279
1 file changed
+1 -1
+1 -1
View File
@@ -2225,7 +2225,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
- (CPDictionary)_sendDelegateShouldChangeTypingAttributes:(CPDictionary)typingAttributes toAttributes:(CPDictionary)attributes
{
if (!(_delegateRespondsToSelectorMask & kDelegateRespondsTo_textView_doCommandBySelector))
if (!(_delegateRespondsToSelectorMask & kDelegateRespondsTo_textView_shouldChangeTypingAttributes_toAttributes))
return [CPDictionary dictionary];
return [_delegate textView:self shouldChangeTypingAttributes:typingAttributes toAttributes:attributes];