]> git.tdb.fi Git - ext/subsurface.git/commit
Fix Segmentation fault when trying to print an empty plot.
authorRiccardo Albertini <ssirowain@gmail.com>
Tue, 20 Sep 2011 12:44:45 +0000 (14:44 +0200)
committerRiccardo Albertini <ssirowain@gmail.com>
Tue, 20 Sep 2011 12:44:45 +0000 (14:44 +0200)
commit9a853c564c9bb47bc91e74d54d69443eeb4c3449
tree2837c9805025f20c171e896f2dfbdc7c41479d25
parente3176882490a012097ae2d158eb8ea0cfb2b5804
Fix Segmentation fault when trying to print an empty plot.

When printing an empty plot, the function was missing nullability check for 'current_dive'. Now the print of an empty plot results with an empty blank page.
A better solution could be making unsensitive the Print entry in the menu, until a plot is loaded.

Signed-off-by: Riccardo Albertini <ssirowain@gmail.com>
print.c