Subject: Re: bug#16058: 24.3.50; X protocol error: BadAlloc...

From: Eli Zaretskii <[email-masked]>
Date: Mon, 09 Dec 2013 18:43:56 +0200

> Date: Mon, 09 Dec 2013 12:36:18 +0400
> From: Dmitry Antipov <[email-masked]>
> Cc: [email-masked]
> 
> No. Instead, could you please verify an attached fix instead?
> It works for me against development trunk revision 115437.
> 
> Dmitry
> 
> 
> [2:text/x-patch Hide Save:invalidate_desired_row_bug16058.patch (356B)]
> 
> === modified file 'src/xdisp.c'
> --- src/xdisp.c	2013-12-04 18:46:47 +0000
> +++ src/xdisp.c	2013-12-09 08:30:57 +0000
> @@ -11937,6 +11937,8 @@
>    int max_x = it->last_visible_x;
>    struct glyph *last;
>  
> +  /* Don't extend on a previously drawn tool bar items (Bug#16058).  */
> +  row->enabled_p = 0;
>    prepare_desired_row (row);
>    row->y = it->current_y;

Isn't it better to just call clear_glyph_row explicitly?