mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
CTextBox: Add function getLinesPerPage()
- Add AUTO_LINEBREAK_NO_BREAKCHARS to textbox_modes for
auto linebreak without '-' and '.' char
Origin commit data
------------------
Commit: 3d404afc7f
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-10-18 (Fri, 18 Oct 2013)
Origin message was:
------------------
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