From c26d0403c6e70fe4434980b22cc2cbe27d7fc6ea Mon Sep 17 00:00:00 2001 From: Gres Date: Mon, 15 Apr 2019 18:43:16 +0300 Subject: [PATCH] Qtc 4.9.0 --- src/markdowneditorfactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/markdowneditorfactory.cpp b/src/markdowneditorfactory.cpp index 16efe02..64307e2 100644 --- a/src/markdowneditorfactory.cpp +++ b/src/markdowneditorfactory.cpp @@ -26,8 +26,8 @@ namespace QtcMarkview { setEditorWidgetCreator ([]() { return new QMarkdownTextEdit; }); - setIndenterCreator ([]() { - return new TextEditor::NormalIndenter; + setIndenterCreator ([](QTextDocument *doc) { + return new TextEditor::NormalIndenter (doc); }); // setSyntaxHighlighterCreator() }