mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
CMenuWidget: Use removeLineBreaks() in paintHint()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2101a32862
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2012-08-20 (Mon, 20 Aug 2012)
Origin message was:
------------------
* CMenuWidget: Use removeLineBreaks() in paintHint()
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1157,15 +1157,9 @@ void CMenuWidget::paintHint(int pos)
|
||||
details_line->paint(savescreen);
|
||||
#endif
|
||||
|
||||
// remove line breaks
|
||||
std::string str = g_Locale->getText(item->hint);
|
||||
std::string::size_type spos = str.find_first_of("\n");
|
||||
while (spos != std::string::npos) {
|
||||
str.replace(spos, 1, " ");
|
||||
spos = str.find_first_of("\n");
|
||||
}
|
||||
|
||||
//init infobox
|
||||
std::string str = g_Locale->getText(item->hint);
|
||||
info_box->removeLineBreaks(str);
|
||||
if (info_box == NULL)
|
||||
info_box = new CComponentsInfoBox(x, ypos2, iwidth, hint_height, str.c_str(), CTextBox::AUTO_WIDTH, g_Font[SNeutrinoSettings::FONT_TYPE_MENU_HINT]);
|
||||
else{
|
||||
|
Reference in New Issue
Block a user