mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 22:53:47 +01:00
no need to manipulate scale while printing
This commit is contained in:
parent
97cad5a7a4
commit
45366ecadd
6
print.c
6
print.c
@ -89,11 +89,5 @@ cb_print_draw_page(GtkPrintOperation* UNUSED(print_operation), GtkPrintContext*
|
||||
return;
|
||||
}
|
||||
|
||||
double requested_with = gtk_print_context_get_width(context);
|
||||
double tmp_scale = zathura->document->scale;
|
||||
zathura->document->scale = requested_with / page->width;
|
||||
|
||||
zathura_page_render(page, cairo);
|
||||
|
||||
zathura->document->scale = tmp_scale;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user