diff options
Diffstat (limited to 'src/core/managed/Manager.cpp')
-rw-r--r-- | src/core/managed/Manager.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/managed/Manager.cpp b/src/core/managed/Manager.cpp index 5428ea1..3950ce2 100644 --- a/src/core/managed/Manager.cpp +++ b/src/core/managed/Manager.cpp @@ -26,8 +26,9 @@ #if defined(MANAGER_DEBUG_PRINT) || defined(MANAGER_GRAPHVIZ_EXPORT) #include <iostream> #include <fstream> -#include "core/common/Rtti.hpp" -#include "core/model/Node.hpp" +#include <core/common/Rtti.hpp> +#include <core/model/Node.hpp> +#include <core/XML.hpp> #endif namespace ousia { @@ -598,6 +599,9 @@ void Manager::exportGraphviz(const char *filename) if (type.isa(RttiTypes::Node)) { name = dynamic_cast<const Node *>(objectPtr)->getName(); } + if (type.isa(RttiTypes::XMLElement)) { + name = dynamic_cast<const xml::Element *>(objectPtr)->name; + } // Print the node uintptr_t p = reinterpret_cast<uintptr_t>(objectPtr); |