-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is cell reference parsing wrong? #449
Comments
Yes, looks like something that broke in refactoring six years ago that hasn't been noticed since. There are unit tests for cell references, but only for both absolute column and row not one or the other. See https://github.com/tfussell/xlnt/blob/master/tests/cell/cell_test_suite.cpp#L667-L669 A fix with an extra test case or two is welcome otherwise I'll take care of it when I can. |
@tfussell I'd like to work on it if no one is working on. |
@amiremohamadi Great! Contribution are always welcome. It's possible to have an absolute column with a relative row and vice versa. So there are four forms:
Official documentation is here https://support.office.com/en-us/article/switch-between-relative-absolute-and-mixed-references-dfec08cd-ae65-4f56-839e-5f0d8d0baca9 I would recommend turning these four into test cases in https://github.com/tfussell/xlnt/blob/master/tests/cell/cell_test_suite.cpp#L667-L669 and then writing the code that passes the tests (TDD). |
This should be resolved by #451. |
When cell_reference is parsing a string reference it looks like absolute flags are swapped. From the comments in the code:
but in fact,
am I missing something?
The text was updated successfully, but these errors were encountered: