forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user