From dc883d94d3beb6d081ef995d5ce8b8774ec85b66 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Fri, 29 Nov 2024 01:18:27 +0100 Subject: [PATCH] Fix a crash while disabling "Pin tab" feature Fix #15860 --- PowerEditor/src/NppIO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index 21e9cde0e..cf5479b89 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -1122,7 +1122,7 @@ void Notepad_plus::unPinnedForAllBuffers() for (size_t i = 0; i < _subDocTab.nbItem(); ++i) { - BufferID id = _mainDocTab.getBufferByIndex(i); + BufferID id = _subDocTab.getBufferByIndex(i); Buffer* buf = MainFileManager.getBufferByID(id); buf->setPinned(false); }