summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2016-02-21 21:44:25 +0000
committerLiam P. White <inkscapebrony@gmail.com>2016-02-21 21:44:25 +0000
commitdfc7239e9f4a91bb6c32b80544d92012d92b410d (patch)
treecb01c4ab1b6eef856d3689dff861f7b3dd5ed90c
parentFont size in status bar should use unit from text units preference. Patch fro... (diff)
downloadinkscape-dfc7239e9f4a91bb6c32b80544d92012d92b410d.tar.gz
inkscape-dfc7239e9f4a91bb6c32b80544d92012d92b410d.zip
Apply from patch from houz (Fixes color profile name mangling)
Fixed bugs: - https://launchpad.net/bugs/1457105 (bzr r14663)
-rw-r--r--src/ui/dialog/document-properties.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp
index 7cd48e62e..c2c5c5005 100644
--- a/src/ui/dialog/document-properties.cpp
+++ b/src/ui/dialog/document-properties.cpp
@@ -448,13 +448,13 @@ void DocumentProperties::populate_available_profiles(){
*/
static void sanitizeName( Glib::ustring& str )
{
- if (str.size() > 1) {
+ if (str.size() > 0) {
char val = str.at(0);
if (((val < 'A') || (val > 'Z'))
&& ((val < 'a') || (val > 'z'))
&& (val != '_')
&& (val != ':')) {
- str.replace(0, 1, "-");
+ str.insert(0, "_");
}
for (Glib::ustring::size_type i = 1; i < str.size(); i++) {
char val = str.at(i);