Fix PDF viewer not to produce garbage windows for nonexistent files
Was calling window_flush() on redraw handler which already happens on window redrawing.
This commit is contained in:
parent
80ad1a943d
commit
2bd429b734
|
@ -78,7 +78,6 @@ redraw_handler(struct widget *widget, void *data)
|
|||
if(!view->document) {
|
||||
cairo_destroy(cr);
|
||||
cairo_surface_destroy(surface);
|
||||
window_flush(view->window);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue