summaryrefslogtreecommitdiff
path: root/src/pugixml.cpp
diff options
context:
space:
mode:
authorSteve Doiel <steved@usnr.com>2015-01-16 14:55:10 -0800
committerSteve Doiel <steved@usnr.com>2015-01-16 14:55:10 -0800
commit4ae1940065c415223445efb23d3200d1b0b1d4a1 (patch)
tree465b1895be707a5d05325e1ee50820ada509f326 /src/pugixml.cpp
parent32f0a8bd3a5c9f3c454164f4d23289851b0de3e7 (diff)
Fix attribute round trip for float as well
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r--src/pugixml.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 6608d8d..2ed94f3 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -4608,6 +4608,13 @@ namespace pugi
return impl::set_value_convert(_attr->value, _attr->header, impl::xml_memory_page_value_allocated_mask, rhs);
}
+ PUGI__FN bool xml_attribute::set_value(float rhs)
+ {
+ if (!_attr) return false;
+
+ return impl::set_value_convert(_attr->value, _attr->header, impl::xml_memory_page_value_allocated_mask, rhs);
+ }
+
PUGI__FN bool xml_attribute::set_value(bool rhs)
{
if (!_attr) return false;