psppire-output-view.c: added check for view->xr - fixes bug #45421
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sat, 27 Jun 2015 10:05:50 +0000 (12:05 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sat, 27 Jun 2015 10:05:50 +0000 (12:05 +0200)
commit5c6e86d036ccb49f6487f8a10cb4586cb4fc4c23
treea0ab137f531f3a7979f712171fd521d7670d3bbe
parente17bf22963466952e4333a9f9994ebad4ca2f5e8
psppire-output-view.c: added check for view->xr - fixes bug #45421

The output windows crashed when an empty syntax window is executed. The
rerender function got called without a valid view->xr (=NULL). I added a
check for this condition and create a new view->xr as it is done in the
psppire_output_view_put function.

This fixes bug #45421: Crash when trying to run empty syntax
src/ui/gui/psppire-output-view.c