[BUG_FIXED] Fix a crash issue (a regression) on opening/closing files.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@971 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
25ae135f82
commit
3bfa679f4a
@ -1607,13 +1607,6 @@ void ScintillaEditView::activateBuffer(BufferID buffer)
|
|||||||
restyleBuffer();
|
restyleBuffer();
|
||||||
}
|
}
|
||||||
|
|
||||||
// find hotspots
|
|
||||||
NMHDR nmhdr;
|
|
||||||
nmhdr.code = SCN_PAINTED;
|
|
||||||
nmhdr.hwndFrom = _hSelf;
|
|
||||||
nmhdr.idFrom = ::GetDlgCtrlID(nmhdr.hwndFrom);
|
|
||||||
::SendMessage(_hParent, WM_NOTIFY, (WPARAM)LINKTRIGGERED, (LPARAM)&nmhdr);
|
|
||||||
|
|
||||||
// restore the collapsed info
|
// restore the collapsed info
|
||||||
const std::vector<HeaderLineState> & lineStateVectorNew = newBuf->getHeaderLineState(this);
|
const std::vector<HeaderLineState> & lineStateVectorNew = newBuf->getHeaderLineState(this);
|
||||||
syncFoldStateWith(lineStateVectorNew);
|
syncFoldStateWith(lineStateVectorNew);
|
||||||
|
Loading…
Reference in New Issue
Block a user