summaryrefslogtreecommitdiffstats
path: root/src/selection-describer.cpp
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-08-01 20:45:43 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-08-01 20:45:43 +0000
commit861a16022da0a56544c439e3e7b771414b7458cc (patch)
treeefc056643c01dad547ecc47c560e35f33ae1c904 /src/selection-describer.cpp
parentKeep tutorial even if built without potrace (diff)
downloadinkscape-861a16022da0a56544c439e3e7b771414b7458cc.tar.gz
inkscape-861a16022da0a56544c439e3e7b771414b7458cc.zip
Avoid implicit charset conversion when using stream output operator
Throws `Glib::ConvertError`s when the current locale does not have the character in question and we need UTF-8 strings for the UI anyway. Fixes https://gitlab.com/inkscape/inkscape/issues/365
Diffstat (limited to 'src/selection-describer.cpp')
-rw-r--r--src/selection-describer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selection-describer.cpp b/src/selection-describer.cpp
index b3250ffbd..526d5269e 100644
--- a/src/selection-describer.cpp
+++ b/src/selection-describer.cpp
@@ -46,7 +46,7 @@ char* collect_terms (const std::vector<SPItem*> &items)
if (item && item->displayName()) {
Glib::ustring term(item->displayName());
if (term != "" && (check.insert(term).second)) {
- ss << (first ? "" : ", ") << "<b>" << term << "</b>";
+ ss << (first ? "" : ", ") << "<b>" << term.raw() << "</b>";
first = false;
}
}