diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index f997181ad..a292a957c 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -7547,6 +7547,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {  	case SCI_CREATEDOCUMENT: {  			Document *doc = new Document();  			doc->AddRef(); +			doc->Allocate(static_cast<int>(wParam));  			return reinterpret_cast<sptr_t>(doc);  		} | 
