X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-jobs.c;h=4cc0c258c017bf3d17a0b13ee261b3b01c233c1a;hb=1b167536f9277df8953cc30a531c1c17eab10382;hp=3bc2fa883ccd260684a4a8ec201b29a7a81060dd;hpb=e93b3a265bbc02546d230204402e3f41e83d6ab5;p=evince.git diff --git a/shell/ev-jobs.c b/shell/ev-jobs.c index 3bc2fa88..4cc0c258 100644 --- a/shell/ev-jobs.c +++ b/shell/ev-jobs.c @@ -227,6 +227,7 @@ ev_job_render_new (EvDocument *document, gint height, EvRectangle *selection_points, gboolean include_links, + gboolean include_text, gboolean include_selection) { EvJobRender *job; @@ -242,6 +243,7 @@ ev_job_render_new (EvDocument *document, job->target_width = width; job->target_height = height; job->include_links = include_links; + job->include_text = include_text; job->include_selection = include_selection; if (include_selection) @@ -281,6 +283,8 @@ ev_job_render_run (EvJobRender *job) job->pixbuf = ev_document_render_pixbuf (EV_JOB (job)->document, job->rc); if (job->include_links) job->link_mapping = ev_document_get_links (EV_JOB (job)->document, job->rc->page); + if (job->include_text && EV_IS_SELECTION (EV_JOB (job)->document)) + job->text_mapping = ev_selection_get_selection_map (EV_SELECTION (EV_JOB (job)->document), job->rc); if (job->include_selection && EV_IS_SELECTION (EV_JOB (job)->document)) ev_selection_render_selection (EV_SELECTION (EV_JOB (job)->document), job->rc,