Fixing row and column tracking when there are blank cells#576
Fixing row and column tracking when there are blank cells#576lsergio wants to merge 2 commits intodhatim:masterfrom
Conversation
|
Thank you! |
| */ | ||
| private String parseSharedFormula(Integer dCol, Integer dRow, String baseFormula) { | ||
| String res = ""; | ||
| StringBuilder res = new StringBuilder(); |
| } | ||
|
|
||
| Cell cell = parseCell(trackedColIndex++); | ||
| Cell cell = parseCell(trackedColIndex++, rowIndex); |
There was a problem hiding this comment.
Now we have both trackedRowIndex field and parameter.
Shouldn't this.trackedRowIndex just be increated in this loop?
There was a problem hiding this comment.
Yeah, that's an option. I added the rowIndex parameter to match the existing colIndex parameter instead of getting one piece of info from the parameter and the other from the attribute
I added a new test case for the RowSpliterator class. I could not create a test that processes the spreadsheet where I found the issue because it contains customer sensitive data, and I didn't manage to create another one - in all my attempts all cells had explicit addresses in the xml content. |
8da7b5b to
e655aba
Compare
e655aba to
88f9f1e
Compare
88f9f1e to
dc80b07
Compare
Fixed cell row and column index tracking when there are blank cells at the beginning of the row, like:
The A2 cells is blank the the lib loses track of the indexes.