Fix #28: correctly track dependencies on card_style._.content / ..layout

This commit is contained in:
Twan van Laarhoven
2020-05-23 13:57:04 +02:00
parent d97cfce85d
commit 83448a1667
+1 -1
View File
@@ -224,7 +224,7 @@ void Style::checkContentDependencies(Context& ctx, const Dependency& dep) const
void Style::markDependencyMember(const String& name, const Dependency& dep) const {
// mark dependencies on content
if (dep.type == DEP_DUMMY && dep.index == false && starts_with(name, _("content "))) {
if (dep.type == DEP_DUMMY && dep.index == false && (starts_with(name, _("content")) || name == "layout") ) {
// anything that starts with "content_" is a content property
const_cast<Dependency&>(dep).index = true;
}