psppire-output-view: Avoid doubling output when exporting or printing.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 1 May 2021 23:39:15 +0000 (16:39 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 1 May 2021 23:39:15 +0000 (16:39 -0700)
commit1a82a2f3edaf2e5a8becec9c4b2fd46b6bee9808
treeaef58a3c012fa6f3539096679a3b405a0a170762
parentb8de70d264498ee0630ceb935f0617d03448eaac
psppire-output-view: Avoid doubling output when exporting or printing.

Outputting a group outputs its contents, but the code here was also
separately outputing the contents, which effectively doubled it.  (PSPP
doesn't currently use nested groups but these would have led to additional
copies.)

This fixes the problem by only printing items that aren't nested inside
any group.

Bug #60464.
Thanks to John Darrington for reporting this bug.
src/ui/gui/psppire-output-view.c