diff options
Diffstat (limited to 'gtk2_ardour/gui_object.h')
-rw-r--r-- | gtk2_ardour/gui_object.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk2_ardour/gui_object.h b/gtk2_ardour/gui_object.h index 62eeaa9a33..c9082807fb 100644 --- a/gtk2_ardour/gui_object.h +++ b/gtk2_ardour/gui_object.h @@ -49,9 +49,7 @@ public: template<typename T> void set_property (const std::string& id, const std::string& prop_name, const T& val) { XMLNode* child = get_or_add_node (id); - std::stringstream s; - s << val; - child->add_property (prop_name.c_str(), s.str()); + child->set_property (prop_name.c_str(), val); } /** Remove node with provided id. |