Controltextbox.settext() bug /n/n
#1
Sad 
if you set text "sam\n\nhello" in controltextbox its display is:

  sam
  sam
  hello

the problem seems to be in:
xbmc/xbmc/guilib/guitextbox.cpp
method settext (clear of szline is missing):

Quote:    // handle the newline character
   if (letter == '\n' )
   {
     cguilistitem item(szline);
     m_vecitems.push_back(item);
     itotallines++;
     ilastspace = -1;
     ilastspaceinline = -1;
     lpos = 0;
     szline[lpos] = 0                       <------- insert
   }
Reply
#2
:fixed: thanks for reporting it.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
Controltextbox.settext() bug /n/n0