mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Merge pull request #600 from doomlaur/bugfix/streaming_reader_clean_cell_state
The streaming cell now always begins with a clean state when using the xlnt::streaming_workbook_reader
This commit is contained in:
commit
09dd4797b4
|
@ -1334,6 +1334,7 @@ bool xlsx_consumer::has_cell()
|
|||
expect_start_element(qn("spreadsheetml", "c"), xml::content::complex);
|
||||
|
||||
assert(streaming_);
|
||||
streaming_cell_.reset(new detail::cell_impl()); // Clean cell state - otherwise it might contain information from the previously streamed cell.
|
||||
auto cell = xlnt::cell(streaming_cell_.get());
|
||||
auto reference = cell_reference(parser().attribute("r"));
|
||||
cell.d_->parent_ = current_worksheet_;
|
||||
|
|
Loading…
Reference in New Issue
Block a user