From 5ff1a95df23e7ffc44e3bf471c602534e3e3dd49 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 20 Feb 2017 10:57:15 +0100 Subject: [PATCH] Absence of perspective configuration no longer triggers assertion --- include/wxex/persist/auimanager.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/wxex/persist/auimanager.h b/include/wxex/persist/auimanager.h index 9179174..8b93d5a 100644 --- a/include/wxex/persist/auimanager.h +++ b/include/wxex/persist/auimanager.h @@ -87,7 +87,8 @@ public: { // Load perspective string from configuration. wxString persp; - wxCHECK(RestoreValue(wxT(wxPERSIST_AUIMGR_PERSPECTIVE), &persp), false); + if (!RestoreValue(wxT(wxPERSIST_AUIMGR_PERSPECTIVE), &persp)) + return false; // Update captions (see http://trac.wxwidgets.org/ticket/12528). wxAuiManager* mgr = GetManager();