[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
This commit is contained in:
parent
52d9ea2d4c
commit
3ef269d952
@ -139,8 +139,10 @@ void DocTabView::bufferUpdated(Buffer * buffer, int mask) {
|
||||
|
||||
::SendMessage(_hSelf, TCM_SETITEM, index, reinterpret_cast<LPARAM>(&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) {
|
||||
|
Loading…
Reference in New Issue
Block a user