mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
gui/widget/hintboxext.cpp: fix invalid iterator advance
Origin commit data
------------------
Branch: ni/coolstream
Commit: 1c89d21b41
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-05-09 (Wed, 09 May 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -258,16 +258,22 @@ void CHintBoxExt::refresh(bool toround)
|
|||||||
// it != m_startEntryOfPage.end();it++) {
|
// it != m_startEntryOfPage.end();it++) {
|
||||||
// printf(" %d",*it);
|
// printf(" %d",*it);
|
||||||
// }
|
// }
|
||||||
// printf("\n current page: %d",m_currentPage);
|
printf("\n current page: %d lines %d ",m_currentPage, m_lines.size());
|
||||||
// printf("von %d bis %d\n",m_startEntryOfPage[m_currentPage],m_startEntryOfPage[m_currentPage+1]-1);
|
printf("start %d bis %d\n",m_startEntryOfPage[m_currentPage],m_startEntryOfPage[m_currentPage+1]-1);
|
||||||
|
|
||||||
|
#if 0
|
||||||
for (ContentLines::iterator it = m_lines.begin() + m_startEntryOfPage[m_currentPage];
|
for (ContentLines::iterator it = m_lines.begin() + m_startEntryOfPage[m_currentPage];
|
||||||
it != m_lines.begin() + m_startEntryOfPage[m_currentPage+1]
|
it != m_lines.begin() + m_startEntryOfPage[m_currentPage+1]
|
||||||
&& it != m_lines.end(); ++it)
|
&& it != m_lines.end(); ++it)
|
||||||
|
#endif
|
||||||
|
for (int count = 0; count < (int) m_lines.size(); count++)
|
||||||
|
{
|
||||||
|
if ((count >= m_startEntryOfPage[m_currentPage]) &&
|
||||||
|
(count < m_startEntryOfPage[m_currentPage+1]))
|
||||||
{
|
{
|
||||||
int xPos = textStartX;
|
int xPos = textStartX;
|
||||||
int maxHeight = 0;
|
int maxHeight = 0;
|
||||||
for (std::vector<Drawable*>::iterator d = it->begin();d!=it->end();++d)
|
for (std::vector<Drawable*>::iterator d = m_lines[count].begin(); d != m_lines[count].end(); ++d)
|
||||||
{
|
{
|
||||||
// (*d)->print();
|
// (*d)->print();
|
||||||
// printf("\n");
|
// printf("\n");
|
||||||
@@ -279,6 +285,7 @@ void CHintBoxExt::refresh(bool toround)
|
|||||||
}
|
}
|
||||||
yPos += maxHeight;
|
yPos += maxHeight;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (has_scrollbar())
|
if (has_scrollbar())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user