summaryrefslogtreecommitdiff
path: root/project2/xmlPresenter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/xmlPresenter.cpp')
-rw-r--r--project2/xmlPresenter.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/project2/xmlPresenter.cpp b/project2/xmlPresenter.cpp
index 68368ec..a8db552 100644
--- a/project2/xmlPresenter.cpp
+++ b/project2/xmlPresenter.cpp
@@ -47,13 +47,17 @@ XmlPresenter::pushSub(const Glib::ustring & name, const Glib::ustring & ns) cons
void
XmlPresenter::addAttr(const Glib::ustring & name, const Glib::ustring & ns, const VariableType & value) const
{
- nodeStack.back()->set_attribute(name, value, ns);
+ if (!boost::get<Null>(&value)) {
+ nodeStack.back()->set_attribute(name, value, ns);
+ }
}
void
XmlPresenter::setText(const VariableType & value) const
{
- nodeStack.back()->set_child_text(value);
+ if (!boost::get<Null>(&value)) {
+ nodeStack.back()->set_child_text(value);
+ }
}
void