mirror of
https://github.com/troldal/OpenXLSX.git
synced 2025-10-14 03:05:48 +08:00
2025-07-14 BUGFIX XLRowData.cpp issue #368: check that m_currentCell is valid
This commit is contained in:
@@ -124,6 +124,9 @@ namespace OpenXLSX
|
||||
*/
|
||||
XLRowDataIterator& XLRowDataIterator::operator++()
|
||||
{
|
||||
if( not m_currentCell ) // 2025-07-14 BUGFIX issue #368: check that m_currentCell is valid
|
||||
throw XLInputError("XLRowDataIterator: tried to increment beyond end operator");
|
||||
|
||||
// ===== Compute the column number, and move the m_cellNode to the next sibling.
|
||||
const uint16_t cellNumber = m_currentCell.cellReference().column() + 1;
|
||||
XMLNode cellNode = m_currentCell.m_cellNode->next_sibling_of_type(pugi::node_element);
|
||||
|
Reference in New Issue
Block a user