summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2013-12-12 13:20:56 +0000
committerJazzyNico <nicoduf@yahoo.fr>2013-12-12 13:20:56 +0000
commit47d4c98d37d15c6c0e2d1c5f2719707363352f12 (patch)
treef56c10bdd8302d5caa3bcaa137c54e58f15bbfa6 /src
parentPartial fix for Bug #1256347 (spiral and stars tools, the inputbox for turns ... (diff)
downloadinkscape-47d4c98d37d15c6c0e2d1c5f2719707363352f12.tar.gz
inkscape-47d4c98d37d15c6c0e2d1c5f2719707363352f12.zip
Fix for Bug #498141 (Crash on opening Inkscape Preferences... dialog (color profiles)).
Fixed bugs: - https://launchpad.net/bugs/498141 (bzr r12847)
Diffstat (limited to 'src')
-rw-r--r--src/color-profile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/color-profile.cpp b/src/color-profile.cpp
index b18112ece..2736b9a3b 100644
--- a/src/color-profile.cpp
+++ b/src/color-profile.cpp
@@ -922,7 +922,7 @@ Glib::ustring getNameFromProfile(cmsHPROFILE profile)
}
nameStr = Glib::ustring(data.begin(), data.end());
}
- if (nameStr.empty()) {
+ if (nameStr.empty() || !g_utf8_validate(nameStr.c_str(), -1, NULL)) {
nameStr = _("(invalid UTF-8 string)");
}
#endif