[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ProjectCenter Editor parenthesis highlighting segfault
From: |
address@hidden |
Subject: |
ProjectCenter Editor parenthesis highlighting segfault |
Date: |
Sat, 23 Aug 2014 14:52:31 +0200 |
Hi,
building ProjectCenter on Debian/Ubuntu unstable leads to a segfault
when unhighlighting two matching parenthesis in pceditor.
in PCEditor.m:
- (void)unhighlightCharacter: (NSTextView *)editorView
{
int i;
NSTextStorage *textStorage = [editorView textStorage];
[textStorage beginEditing];
// if (isCharacterHighlit)
for (i = 0; (highlited_chars[i] != -1 && i < 2); i++)
{
NSRange r = NSMakeRange(highlited_chars[i], 1);
// NSRange r = NSMakeRange(highlitCharacterLocation, i);
Boolean expression changed to:
for (i = 0; (i<2 && highlited_chars[i] != -1 ); i++)
solves that
Cheers
Markus