Terminal: Fix endless loop

An error in the QPoint constructor version of CellIterator meant
that m_pos could be bigger than m_maxpos.

CellIterator(,State) was also simplified to be more correct.

Change-Id: Ib67b26695fae1e1857d106319037ca8f63bcb250
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-05-09 07:37:30 +02:00
parent c0f0ccdc78
commit b509e5aef9
3 changed files with 11 additions and 23 deletions

View File

@@ -496,7 +496,7 @@ CellIterator TerminalSurface::begin() const
CellIterator TerminalSurface::end() const
{
return CellIterator(this, CellIterator::State::END);
return CellIterator(this);
}
std::reverse_iterator<CellIterator> TerminalSurface::rbegin() const