summaryrefslogtreecommitdiff
path: root/src/cxml.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cxml.cc')
-rw-r--r--src/cxml.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cxml.cc b/src/cxml.cc
index 77770f9..3c2eda2 100644
--- a/src/cxml.cc
+++ b/src/cxml.cc
@@ -220,7 +220,7 @@ cxml::Node::content () const
xmlpp::Node::NodeList c = _node->get_children ();
for (xmlpp::Node::NodeList::const_iterator i = c.begin(); i != c.end(); ++i) {
xmlpp::ContentNode const * v = dynamic_cast<xmlpp::ContentNode const *> (*i);
- if (v) {
+ if (v && dynamic_cast<xmlpp::TextNode const *>(v)) {
content += v->get_content ();
}
}