From 84ccea6cf6b58c7a0b71b549dd34214374755422 Mon Sep 17 00:00:00 2001 From: Dakror Date: Tue, 26 Jan 2021 15:11:17 +0100 Subject: [PATCH] Fix templates not refreshing their stylesheet --- Source/Core/ElementDocument.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/ElementDocument.cpp b/Source/Core/ElementDocument.cpp index b46105008..507dbfbbe 100644 --- a/Source/Core/ElementDocument.cpp +++ b/Source/Core/ElementDocument.cpp @@ -227,6 +227,7 @@ void ElementDocument::ReloadStyleSheet() } Factory::ClearStyleSheetCache(); + Factory::ClearTemplateCache(); ElementPtr temp_doc = Factory::InstanceDocumentStream(nullptr, stream.get(), context->GetDocumentsBaseTag()); if (!temp_doc) { Log::Message(Log::LT_WARNING, "Failed to reload style sheet, could not instance document: %s", source_url.c_str());