gui: Fix behavior of print preview in psppire-output-window.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 4 Dec 2011 18:44:07 +0000 (10:44 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 4 Dec 2011 18:44:24 +0000 (10:44 -0800)
commitae1e48a9727327898aaf9662f53a9a1ec115ab11
treeea2561e3497f19a792e8a16bcb665069178776b3
parent1cf8b236bb43257161f2c014b2384aa4709315c9
gui: Fix behavior of print preview in psppire-output-window.

Print preview only showed one page because the GtkPrintOperation emits
"paginate" again even after it returns TRUE once and our "paginate"
implementation was not prepared for that.

Also fixes a memory leak in paginate(): the driver used for pagination was
not being freed.

Reported-by: John Darrington <john@darrington.wattle.id.au>
src/ui/gui/psppire-output-window.c
src/ui/gui/psppire-output-window.h