From 7667355a21a62dd920c3f90785b1c5fbc5e7f713 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Thu, 3 Apr 2008 18:53:07 +0000 Subject: [PATCH] [BUG_FIXED] Fix crash bug when 'Close All But Me' is selected. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@160 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Notepad_plus.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index b3236ed25..d8244ee85 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -4686,7 +4686,11 @@ bool Notepad_plus::fileCloseAllButCurrent() for (int i = 0 ; i < curIndex ; i++) if (!fileClose()) + { + curIndex -= i; + _pDocTab->activate(curIndex); return false; + } if (_pEditView->getNbDoc() > 1) {