projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ade70fe
)
Fix gettext for tabs (windows)
author
BlockMen
<nmuelll@web.de>
Sun, 18 Aug 2013 12:36:38 +0000
(14:36 +0200)
committer
PilzAdam
<pilzadam@minetest.net>
Mon, 19 Aug 2013 13:59:09 +0000
(15:59 +0200)
src/guiFormSpecMenu.cpp
patch
|
blob
|
history
diff --git
a/src/guiFormSpecMenu.cpp
b/src/guiFormSpecMenu.cpp
index 1da923cd17686df84fa061cb1f293b60e132eede..02b114f43ff4ddc3b74351921dd61314022a202d 100644
(file)
--- a/
src/guiFormSpecMenu.cpp
+++ b/
src/guiFormSpecMenu.cpp
@@
-1253,7
+1253,8
@@
void GUIFormSpecMenu::parseTabHeader(parserData* data,std::string element) {
for (unsigned int i=0; i< buttons.size(); i++) {
wchar_t* wbutton = 0;
- wbutton = (wchar_t*) narrow_to_wide(buttons[i].c_str()).c_str();
+ std::wstring wlabel = narrow_to_wide(buttons[i]); //Needed for displaying text on windows
+ wbutton = (wchar_t*) wlabel.c_str();
e->addTab(wbutton,-1);
}