mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CTextBox: Add function getLinesPerPage()
- Add AUTO_LINEBREAK_NO_BREAKCHARS to textbox_modes for auto linebreak without '-' and '.' char
This commit is contained in:
@@ -373,9 +373,11 @@ void CTextBox::refreshTextLineArray(void)
|
||||
{
|
||||
//manage auto linebreak,
|
||||
if(m_nMode & NO_AUTO_LINEBREAK)
|
||||
pos = m_cText.find_first_of("\n",pos_prev);
|
||||
pos = m_cText.find_first_of("\n", pos_prev);
|
||||
else if(m_nMode & AUTO_LINEBREAK_NO_BREAKCHARS)
|
||||
pos = m_cText.find_first_of("\n/ ", pos_prev);
|
||||
else
|
||||
pos = m_cText.find_first_of("\n/-. ",pos_prev);
|
||||
pos = m_cText.find_first_of("\n/-. ", pos_prev);
|
||||
|
||||
//TRACE_1(" pos: %d pos_prev: %d\r\n",pos,pos_prev);
|
||||
|
||||
|
Reference in New Issue
Block a user