From ba861138ca8670dff266825c842739917fc2f73e Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 10 Nov 2022 13:42:06 +0100 Subject: [PATCH] [xml] Show TextNode ContentNodes are also comments. --- src/document/xml/renderer2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/document/xml/renderer2.cpp b/src/document/xml/renderer2.cpp index e1dee9d5..78a598c1 100644 --- a/src/document/xml/renderer2.cpp +++ b/src/document/xml/renderer2.cpp @@ -297,7 +297,7 @@ walk_tree(std::map *mapa, struct string *buf, void *nod, xmlpp::Node *node = static_cast(nod); if (!start) { - const auto textNode = dynamic_cast(node); + const auto textNode = dynamic_cast(node); if (textNode) { add_bytes_to_string(buf, textNode->get_content().c_str(), textNode->get_content().length());