bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#22787: [PATCH] Allocate glyph matrices for the initial frame


From: Chris Feng
Subject: bug#22787: [PATCH] Allocate glyph matrices for the initial frame
Date: Thu, 25 Feb 2016 09:38:58 +0800

>> After bd4de70f the initial frame is created without the glyph matrices
>> allocated.  As a result Emacs in batch/daemon mode would crash when 
>> evaluating
>> certain functions (e.g. line-pixel-height, window-text-pixel-size).
>
> Thanks, but can you explain this part:
>
>>  clear_glyph_matrix_rows (struct glyph_matrix *matrix, int start, int end)
>>  {
>>    eassert (start <= end);
>> -  eassert (start >= 0 && start < matrix->nrows);
>> +  eassert (start >= 0 && start <= matrix->nrows);
>
> If this is for the case that both start and matrix->nrows are zero,
> please test that case separately.

Thanks.  I've just pushed a commit to fix this.





reply via email to

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