Skip to content

Commit deaa8dc

Browse files
BlockMenPilzAdam
authored andcommittedAug 19, 2013
Fix gettext for tabs (windows)
1 parent ade70fe commit deaa8dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/guiFormSpecMenu.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,8 @@ void GUIFormSpecMenu::parseTabHeader(parserData* data,std::string element) {
12531253
for (unsigned int i=0; i< buttons.size(); i++) {
12541254
wchar_t* wbutton = 0;
12551255

1256-
wbutton = (wchar_t*) narrow_to_wide(buttons[i].c_str()).c_str();
1256+
std::wstring wlabel = narrow_to_wide(buttons[i]); //Needed for displaying text on windows
1257+
wbutton = (wchar_t*) wlabel.c_str();
12571258

12581259
e->addTab(wbutton,-1);
12591260
}

0 commit comments

Comments
 (0)
Please sign in to comment.