Commit e2befb0c authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Fixed return value of SetText. It failed to return true in some cases even when it had succeeded.

parent ba73e37b
......@@ -210,9 +210,11 @@ sub SetText($$$)
} elsif (scalar(@grand) == 0
&& $child->nodeType() == XML_ELEMENT_NODE) {
$child->appendText($text);
$result = 1;
}
} elsif ($node->nodeType() == XML_ELEMENT_NODE) {
$node->setAttribute($name, $text);
$result = 1;
}
}
return $result;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment