From 6fb4db4d6e160550a0889e209174b86e94bfe672 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 2 Feb 2018 14:34:55 +1100 Subject: Backport: Implement SC_DOCUMENTOPTION_STYLES_NONE. Backport of changeset 6448:431b814a54a6. --- src/Editor.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index a292a957c..75b3859e0 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; } @@ -7545,7 +7545,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(lParam)); doc->AddRef(); doc->Allocate(static_cast(wParam)); return reinterpret_cast(doc); @@ -7560,7 +7560,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(lParam)); doc->AddRef(); doc->Allocate(static_cast(wParam)); doc->SetUndoCollection(false); -- cgit v1.2.3