psppire-output-view tried to make use of a special feature in the
cairo output driver that allowed the cairo_t to be omitted to avoid
actually rendering anything, for pagination purposes, but the cairo
code had changed and this feature had not been carefully maintained,
resulting in a segfault. This commit stops trying to use that
feature, since it seems like it could easily get broken again in the
future and doesn't have much benefit anyhow.
Bug #43816.
Reported by John Darrington.
/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2008-2014 Free Software Foundation.
+ Copyright (C) 2008-2015 Free Software Foundation.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
view->items[view->print_item++].item);
while (xr_driver_need_new_page (view->print_xrd))
{
- xr_driver_next_page (view->print_xrd, NULL);
+ xr_driver_next_page (view->print_xrd, get_cairo_context_from_print_context (context));
view->print_n_pages ++;
}
return FALSE;