From 07ac3445889fc59eb2591bb6e5333bf2969016e7 Mon Sep 17 00:00:00 2001 From: donho Date: Thu, 6 Sep 2007 21:41:20 +0000 Subject: [PATCH] [BUG_FIXED] Fix the crash bug while closing Notepad++ if Styles Configurator is never launched. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@27 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Notepad_plus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 2119ebaad..b88c89c46 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -6652,7 +6652,7 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa const NppGUI & nppgui = pNppParam->getNppGUI(); - if (::IsWindowVisible(_configStyleDlg.getHSelf())) + if (_configStyleDlg.isCreated() && ::IsWindowVisible(_configStyleDlg.getHSelf())) _configStyleDlg.restoreGlobalOverrideValues(); Session currentSession;