Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/auxiliary/functions.cc')
-rw-r--r--src/auxiliary/functions.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auxiliary/functions.cc b/src/auxiliary/functions.cc
index a6187af..860524a 100644
--- a/src/auxiliary/functions.cc
+++ b/src/auxiliary/functions.cc
@@ -149,7 +149,7 @@ void to_label(std::string &text)
size_t pos = 0;
while (pos < text.size()) {
- if ((text[pos] == ' ') || (text[pos] == '-')) {
+ if ((text[pos] == ' ') || (text[pos] == '-') || (text[pos] == '_')) {
text[pos] = '_';
pos++;
} else if ((text[pos] >= 'A') && (text[pos] <= 'Z')) {