fixed crash in select_col if no old frame exists

This commit is contained in:
garbeam 2005-12-14 19:51:40 +02:00
parent 4b50294b0d
commit eb05036a06

View File

@ -332,7 +332,7 @@ static void select_col(Frame *f, Bool raise)
a->file[A_SEL_FRAME]->content = f->file[F_PREFIX]->content;
if (raise)
center_pointer(f);
if (old != f)
if (old && old != f)
draw_frame(old);
draw_frame(f);
}