diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-02-02 14:34:55 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-02-02 14:34:55 +1100 | 
| commit | 3f1c1f5fe73d9fe48af8ffc2f0dbf2107d65cf52 (patch) | |
| tree | 2f662f0da33a58e1e9700b358ab695c3c04b7465 /src/Editor.cxx | |
| parent | cc13723d8f558fb7c48f3f4ed1bb107f35b95397 (diff) | |
| download | scintilla-mirror-3f1c1f5fe73d9fe48af8ffc2f0dbf2107d65cf52.tar.gz | |
Implement SC_DOCUMENTOPTION_STYLES_NONE.
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 84ae3e318..b6e572c24 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5162,7 +5162,7 @@ void Editor::SetDocPointer(Document *document) {  	pdoc->RemoveWatcher(this, 0);  	pdoc->Release();  	if (document == NULL) { -		pdoc = new Document(); +		pdoc = new Document(SC_DOCUMENTOPTION_DEFAULT);  	} else {  		pdoc = document;  	} @@ -7554,7 +7554,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {  		return 0;  	case SCI_CREATEDOCUMENT: { -			Document *doc = new Document(); +			Document *doc = new Document(static_cast<int>(lParam));  			doc->AddRef();  			doc->Allocate(static_cast<int>(wParam));  			return reinterpret_cast<sptr_t>(doc); @@ -7569,7 +7569,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {  		break;  	case SCI_CREATELOADER: { -			Document *doc = new Document(); +			Document *doc = new Document(static_cast<int>(lParam));  			doc->AddRef();  			doc->Allocate(static_cast<int>(wParam));  			doc->SetUndoCollection(false); | 
