summaryrefslogtreecommitdiff
path: root/lib/element.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/element.cpp')
-rw-r--r--lib/element.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/element.cpp b/lib/element.cpp
index 008027c..1781fc7 100644
--- a/lib/element.cpp
+++ b/lib/element.cpp
@@ -21,7 +21,7 @@ Element::Element(const std::string &name)
size_t which = 0;
while (true)
{
- const std::string uid = str(boost::format("%s %u") % name % which);
+ const std::string uid = str(boost::format("%s_%u") % name % which);
try
{
this->set_uid(uid);