Don't crash when using wxPrintDialog with NULL parent under GTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Feb 2012 13:41:11 +0000 (13:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Feb 2012 13:41:11 +0000 (13:41 +0000)
commite3efa5c1ec3cca04a8904e7865f8531ddf9705d5
tree8d0ce697c9e65f4c2524a7d5d95ee4df441b3b36
parent8cddee2d0ec042b15e633944a0c30dae77357175
Don't crash when using wxPrintDialog with NULL parent under GTK.

Check that we have a valid parent before using it.

Also simplify the code a little.

Closes #14033.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/print.cpp