]> git.saurik.com Git - wxWidgets.git/commit - samples/docview/view.cpp
Avoid crash on startup when using single mode in docview sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Jun 2011 22:57:59 +0000 (22:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Jun 2011 22:57:59 +0000 (22:57 +0000)
commitc346d3d299d05dd539d06b88ca98ca0af6ef12bd
treef5365f7a9e9f5fae03a30c64f11e4df55a256ce9
parent1aa727618ec7d9739a57a6fd12366a862aba32d2
Avoid crash on startup when using single mode in docview sample.

The view doesn't have any associated frame when using the special "single
view" mode in the sample, so don't try to show it when creating a new view.

This resulted in a crash when starting the sample with --single command line
parameter.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
samples/docview/view.cpp