[office/klevernotes] src/logic/editor: Fix adaptive tag size
Louis Schul <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 6e72cf0fe263828efd32b991bc269e5ce765076f by Louis Schul.
Committed on 23/07/2026 at 08:45.
Pushed by louis-schul into branch 'master'.
Fix adaptive tag size
M +2 -1 src/logic/editor/editorHighlighter.cpp
https://invent.kde.org/office/klevernotes/-/commit/6e72cf0fe263828efd32b991bc269e5ce765076f
diff --git a/src/logic/editor/editorHighlighter.cpp b/src/logic/editor/editorHighlighter.cpp
index 0afc0a5d..0e647c05 100644
--- a/src/logic/editor/editorHighlighter.cpp
+++ b/src/logic/editor/editorHighlighter.cpp
@@ -245,7 +245,6 @@ void EditorHighlighter::onHeading(MD::Heading *h)
MD::PosCache::onHeading(h);
- d->headingLevel = inititalHeadingLevel;
d->additionalStyle = inititalAdditionalStyle;
if (m_highlightEnabled) {
@@ -262,6 +261,8 @@ void EditorHighlighter::onHeading(MD::Heading *h)
d->setFormat(special, h->labelPos());
}
}
+
+ d->headingLevel = inititalHeadingLevel;
}
void EditorHighlighter::onCode(MD::Code *c)