viewertexteditor: enforce default format on first open

This commit is contained in:
itsmattkc
2023-02-21 14:43:44 -08:00
parent d7c83269c5
commit f9718cdeb0
+3
View File
@@ -294,6 +294,9 @@ void ViewerTextEditor::DocumentChanged()
forced_default_ = true;
}
} else {
if (default_fmt_.isEmpty()) {
default_fmt_ = document()->firstBlock().charFormat();
}
forced_default_ = false;
}