]> www.fi.muni.cz Git - evince.git/blobdiff - ps/ps-document.c
Allow build from different dir
[evince.git] / ps / ps-document.c
index 75009dc9844f54c4ed8ef6ede8240c26a19d36f9..2fabd2613347e094508b0a2a836b75839bc7e171 100644 (file)
@@ -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);