diff options
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/xfns.c | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 509cd8d4005..248d3ac5ad7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2001-09-25 Gerd Moellmann <gerd@gnu.org> | 1 | 2001-09-25 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * xfns.c (x_kill_gs_process): Recognize if someone has cleared | ||
| 4 | the image cache under us. | ||
| 5 | |||
| 3 | * xdisp.c (display_mode_element): If the mode element is a symbol | 6 | * xdisp.c (display_mode_element): If the mode element is a symbol |
| 4 | with a string value, use that string's multibyteness for | 7 | with a string value, use that string's multibyteness for |
| 5 | displaying. | 8 | displaying. |
diff --git a/src/xfns.c b/src/xfns.c index e2690e7a30e..cc778d833e3 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -10117,9 +10117,13 @@ x_kill_gs_process (pixmap, f) | |||
| 10117 | if (c->images[i]->pixmap == pixmap) | 10117 | if (c->images[i]->pixmap == pixmap) |
| 10118 | break; | 10118 | break; |
| 10119 | 10119 | ||
| 10120 | /* Should someone in between have cleared the image cache, for | ||
| 10121 | instance, give up. */ | ||
| 10122 | if (i == c->used) | ||
| 10123 | return; | ||
| 10124 | |||
| 10120 | /* Kill the GS process. We should have found PIXMAP in the image | 10125 | /* Kill the GS process. We should have found PIXMAP in the image |
| 10121 | cache and its image should contain a process object. */ | 10126 | cache and its image should contain a process object. */ |
| 10122 | xassert (i < c->used); | ||
| 10123 | img = c->images[i]; | 10127 | img = c->images[i]; |
| 10124 | xassert (PROCESSP (img->data.lisp_val)); | 10128 | xassert (PROCESSP (img->data.lisp_val)); |
| 10125 | Fkill_process (img->data.lisp_val, Qnil); | 10129 | Fkill_process (img->data.lisp_val, Qnil); |