--- gutter.c~ Fri Jan 21 22:06:27 2000 +++ gutter.c Sat Jan 29 12:02:04 2000 @@ -222,12 +222,17 @@ struct device *d = XDEVICE (f->device); struct window* w = XWINDOW (window); int x, y, width, height, ypos; - int line; - int border_width = FRAME_GUTTER_BORDER_WIDTH (f, pos); - face_index findex = get_builtin_face_cache_index (w, Vgui_element_face); + int line, border_width; + face_index findex; display_line_dynarr* ddla, *cdla; struct display_line *dl; int cdla_len; + + if (!WINDOW_LIVE_P (w)) + return; + + border_width = FRAME_GUTTER_BORDER_WIDTH (f, pos); + findex = get_builtin_face_cache_index (w, Vgui_element_face); if (!f->current_display_lines) f->current_display_lines = Dynarr_new (display_line);