From 6f740de0adf13c1d0cd396054ff3c66fa94145da Mon Sep 17 00:00:00 2001 From: harrybharry Date: Wed, 25 Jun 2008 21:52:43 +0000 Subject: [PATCH] Fix view not closing of not active. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@257 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 814571cff..9a39d5c6a 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -798,7 +798,7 @@ void Notepad_plus::doClose(BufferID id, int whichOne) { //Do all the works removeBufferFromView(id, whichOne); - if (nrDocs == 1 && canHideView(currentView())) + if (nrDocs == 1 && canHideView(whichOne)) { //close the view if both visible hideView(whichOne); }