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: Eli Zaretskii
Subject: bug#22787: [PATCH] Allocate glyph matrices for the initial frame
Date: Wed, 24 Feb 2016 19:25:49 +0200

> Date: Wed, 24 Feb 2016 14:32:17 +0800
> From: Chris Feng <chris.w.feng@gmail.com>
> 
> 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.





reply via email to

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