Commit 41e25394 authored by CharlieC's avatar CharlieC
Browse files

Make sure we update the internal row counter after parsing.

Resolves #1151

--HG--
branch : 2.6
parent 1e71f3d8089c
......@@ -312,6 +312,7 @@ class WorksheetReader(object):
c.data_type = cell['data_type']
self.ws._cells[(cell['row'], cell['column'])] = c
self.ws.formula_attributes = self.parser.array_formulae
self.ws._current_row = self.parser.max_row
def bind_formatting(self):
......
......@@ -691,6 +691,7 @@ class TestWorksheetReader:
assert ws['C1'].value == 'a'
assert ws.formula_attributes == {'E2': {'ref':"E2:E11", 't':"array"}}
assert ws['E2'].value == "=C2:C11*D2:D11"
assert ws._current_row == 26
def test_formatting(self, PrimedWorksheetReader):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment