diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-08-01 20:45:43 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-08-01 20:45:43 +0000 |
| commit | 861a16022da0a56544c439e3e7b771414b7458cc (patch) | |
| tree | efc056643c01dad547ecc47c560e35f33ae1c904 /src/selection-describer.cpp | |
| parent | Keep tutorial even if built without potrace (diff) | |
| download | inkscape-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.cpp | 2 |
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; } } |
