From 5307cd3d4de8e8e7de9431e5a4959682fe2d7392 Mon Sep 17 00:00:00 2001 From: Ingo Meyer Date: Tue, 16 Jul 2024 17:08:59 +0200 Subject: [PATCH] [GRM] Deactivate (global) auto update XML schema loading --- lib/grm/src/grm/plot.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/grm/src/grm/plot.cxx b/lib/grm/src/grm/plot.cxx index a17a6baf2..03db54fdb 100644 --- a/lib/grm/src/grm/plot.cxx +++ b/lib/grm/src/grm/plot.cxx @@ -6566,6 +6566,10 @@ std::shared_ptr grm_load_graphics_tree_schema(bool with_private_a return nullptr; } + bool auto_update; + global_render->getAutoUpdate(&auto_update); + global_render->setAutoUpdate(false); + std::shared_ptr private_schema_document; XMLSize_t errorCount = 0; if (with_private_attributes) @@ -6636,6 +6640,8 @@ std::shared_ptr grm_load_graphics_tree_schema(bool with_private_a XMLPlatformUtils::Terminate(); + global_render->setAutoUpdate(auto_update); + return (errorCount == 0) ? schema_document : nullptr; } #endif