discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ProjectCenter Editor parenthesis highlighting segfault


From: Germán Arias
Subject: Re: ProjectCenter Editor parenthesis highlighting segfault
Date: Sun, 24 Aug 2014 12:27:38 -0600
User-agent: GNUMail (Version 1.2.1)

Hi,

On 2014-08-23 06:52:31 -0600 "desterium@t-online.de" <desterium@t-online.de> 
wrote:

> 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
> 

The current code in SVN has a different order. So maybe this also solves your 
problem.

Germán.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]