X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=ps%2Fps-document.c;h=2fabd2613347e094508b0a2a836b75839bc7e171;hb=a61c4406e2cd4dc8f2d3a981e73dc09ae21e6ece;hp=75009dc9844f54c4ed8ef6ede8240c26a19d36f9;hpb=3979c5c5ca307cad84b417b0d350aa205fdc422f;p=evince.git diff --git a/ps/ps-document.c b/ps/ps-document.c index 75009dc9..2fabd261 100644 --- a/ps/ps-document.c +++ b/ps/ps-document.c @@ -210,6 +210,9 @@ push_pixbuf (PSDocument *gs) GdkColormap *cmap; GdkPixbuf *pixbuf; int width, height; + + if (gs->pstarget == NULL) + return; cmap = gdk_window_get_colormap (gs->pstarget); gdk_drawable_get_size (gs->bpixmap, &width, &height); @@ -311,6 +314,9 @@ setup_pixmap (PSDocument *gs, int page, double scale, int rotation) GdkColormap *colormap; double width, height; int pixmap_width, pixmap_height; + + if (gs->pstarget == NULL) + return; ev_document_get_page_size (EV_DOCUMENT (gs), page, &width, &height);