Skip to content
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

When a condition style splited into multi part,it should be the same rule style #1783

Closed
ShowerBandV opened this issue Jan 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ShowerBandV
Copy link
Contributor

Description
I got a condition range like "$H$1:$H$4,$H$8:$H$10,$H$13:$H$15", SetConditionalFormat() will return "invalid column name "H4,H",I read the func code,I found excelize parse range should be like this

func rangeRefToCoordinates(ref string) ([]int, error) {
	rng := strings.Split(strings.ReplaceAll(ref, "$", ""), ",")
	for i := 0; i < len(rng); i++ {
		rng2 := strings.Split(rng[i], ":")
		if len(rng) < 2 {
			return nil, ErrParameterInvalid
		}
		coordinates,err:=cellRefsToCoordinates(rng2[0], rng2[1])
                ...........
	}
        ......
}
@xuri xuri added the bug Something isn't working label Jan 19, 2024
@xuri xuri added the in progress Working in progress label Jan 20, 2024
327674413 added a commit to 327674413/excelize that referenced this issue Jan 20, 2024
@xuri xuri closed this as completed in 4eb3486 Jan 20, 2024
@xuri
Copy link
Member

xuri commented Jan 20, 2024

Thanks for your issue. This issue has been fixed, please try to upgrade the master branch code, and this patch will be released in the next version.

@xuri xuri removed the in progress Working in progress label Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants