Browse Source

Fix templates not refreshing their stylesheet (#171)

Maximilian Stark 4 years ago
parent
commit
35d373d5dd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/Core/ElementDocument.cpp

+ 1 - 0
Source/Core/ElementDocument.cpp

@@ -227,6 +227,7 @@ void ElementDocument::ReloadStyleSheet()
 	}
 	}
 
 
 	Factory::ClearStyleSheetCache();
 	Factory::ClearStyleSheetCache();
+	Factory::ClearTemplateCache();
 	ElementPtr temp_doc = Factory::InstanceDocumentStream(nullptr, stream.get(), context->GetDocumentsBaseTag());
 	ElementPtr temp_doc = Factory::InstanceDocumentStream(nullptr, stream.get(), context->GetDocumentsBaseTag());
 	if (!temp_doc) {
 	if (!temp_doc) {
 		Log::Message(Log::LT_WARNING, "Failed to reload style sheet, could not instance document: %s", source_url.c_str());
 		Log::Message(Log::LT_WARNING, "Failed to reload style sheet, could not instance document: %s", source_url.c_str());