From 71a6ffa76203a13b6cb0ec88b7ee57e04f809148 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Sat, 31 Aug 2013 21:07:53 +0200 Subject: Use wstring for vertlabels --- src/guiFormSpecMenu.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index 02b114f43..b162e8e99 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -1069,7 +1069,7 @@ void GUIFormSpecMenu::parseVertLabel(parserData* data,std::string element) { if (parts.size() == 2) { std::vector v_pos = split(parts[0],','); - std::string text = parts[1]; + std::wstring text = narrow_to_wide(unescape_string(parts[1])); MY_CHECKPOS("vertlabel",1); @@ -1082,17 +1082,16 @@ void GUIFormSpecMenu::parseVertLabel(parserData* data,std::string element) { if(data->bp_set != 2) errorstream<<"WARNING: invalid use of label without a size[] element"<