xlnt/source/detail
Adam Hooper 319c4197c1
Streaming: skip empty rows in has_cell()/read_cell()
Previously, an empty row would mess with the parser: if we're in an
empty row, our helper methods don't detect us as being in the "row" _or_
in the "sheetData". So `has_cell()` would return false when it
shouldn't. Similarly, `read_cell()` wouldn't skip rows; so `read_cell()`
would return an invalid cell when placed in an empty row, causing a
segfault when the caller tried to use the cell.

Callers must take care to call `has_next()` before `read_next()`. In
the future, perhaps we can make `read_next()` return a `std::optional`
and nix `has_next()` altogether?

[Closes #492]
2020-07-28 15:29:12 -04:00
..
cryptography bump copyright year to 2020 2020-02-08 12:12:59 -05:00
external bump copyright year to 2020 2020-02-08 12:12:59 -05:00
header_footer use the new faster serialisation everywhere in xlsx_producer 2020-03-01 22:01:53 +13:00
implementations remove a double lookup in the cell map during serialisation 2020-03-01 23:18:13 +13:00
number_format fix bad commit 2020-04-26 14:53:15 +12:00
serialization Streaming: skip empty rows in has_cell()/read_cell() 2020-07-28 15:29:12 -04:00
binary.hpp bump copyright year to 2020 2020-02-08 12:12:59 -05:00
constants.cpp bump copyright year to 2020 2020-02-08 12:12:59 -05:00
constants.hpp bump copyright year to 2020 2020-02-08 12:12:59 -05:00
default_case.hpp bump copyright year to 2020 2020-02-08 12:12:59 -05:00
unicode.cpp bump copyright year to 2020 2020-02-08 12:12:59 -05:00
unicode.hpp bump copyright year to 2020 2020-02-08 12:12:59 -05:00