From 3ef269d952a613c60eb44639fff7ea6407f6f209 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Sat, 7 Jul 2012 10:15:25 +0000 Subject: [PATCH] [BUG_FIXED] (Author: Andreas Jonsson) Fix a GUI bug: it shows empty tab row while closing a last tab in a row (in the multi-line tab mode). git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@926 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/ScitillaComponent/DocTabView.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/ScitillaComponent/DocTabView.cpp b/PowerEditor/src/ScitillaComponent/DocTabView.cpp index 14298445d..705e95b2d 100644 --- a/PowerEditor/src/ScitillaComponent/DocTabView.cpp +++ b/PowerEditor/src/ScitillaComponent/DocTabView.cpp @@ -139,8 +139,10 @@ void DocTabView::bufferUpdated(Buffer * buffer, int mask) { ::SendMessage(_hSelf, TCM_SETITEM, index, reinterpret_cast(&tie)); - // WM_SIZE shouldn't be needed here - //::SendMessage(_hParent, WM_SIZE, 0, 0); + // send WM_SIZE only when change tab + // It is needed while a tab is closed (so tab changed) in multi-line tab mode + if (mask & BufferChangeRecentTag) + ::SendMessage(_hParent, WM_SIZE, 0, 0); } void DocTabView::setBuffer(int index, BufferID id) {