Commit 3cc5a647 authored by Milian Wolff's avatar Milian Wolff
Browse files

Don't try to handle unknown attributes

parent 4eba2b2a
......@@ -266,6 +266,9 @@ bool ColorCache::updateColorsFromTheme(const KSyntaxHighlighting::Theme& theme)
for (const auto& format : formats) {
const auto type = highlightingTypeFromName(format.name());
const auto attr = m_defaultColors->attribute(type);
if (!attr) {
continue;
}
auto forwardProperty = [&](auto formatGetter, auto attrProperty, auto attrSetter) {
auto formatProperty = (format.*formatGetter)(theme);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment