diff --git a/hi_core/hi_components/markdown_components/MarkdownPreview.cpp b/hi_core/hi_components/markdown_components/MarkdownPreview.cpp index cc11dce58b..2fcbfd58d9 100644 --- a/hi_core/hi_components/markdown_components/MarkdownPreview.cpp +++ b/hi_core/hi_components/markdown_components/MarkdownPreview.cpp @@ -294,7 +294,7 @@ void DocUpdater::SnippetCreator::createSnippetDatabase() showStatusMessage("Create docs for " + i.name); - auto img = i.createScreenshot(root.getComponent()); + auto img = i.createScreenshot(root); if(threadToUse != nullptr && threadToUse->threadShouldExit()) return; diff --git a/hi_core/hi_components/markdown_components/MarkdownPreview.h b/hi_core/hi_components/markdown_components/MarkdownPreview.h index 8d4175e3eb..1a79ba51d6 100644 --- a/hi_core/hi_components/markdown_components/MarkdownPreview.h +++ b/hi_core/hi_components/markdown_components/MarkdownPreview.h @@ -78,7 +78,7 @@ class DocUpdater : public DialogWindowWithBackgroundThread, threadToUse(t) {} - Component::SafePointer root; + BackendRootWindow* root; std::function logger; String snippetDirectory; Thread* threadToUse = nullptr;