复杂表头合并时,在某些场景下报错 #1662
Labels
bug
Something isn't working
development completed
Development completed, waiting for release
pending verification
This problem needs to be confirmed
建议先去看文档
复杂表头合并时,在某些场景下报错
触发场景描述
当head是这种数据时,列头合并会出错:
原因是在计算合并区域的时候,向右扩展计算不严谨,应该校验一下其父节点是否一致,如果一致,则进行合并,如果不一致则不合并
触发Bug的代码
上述代码中
if (headList.get(k).getHeadNameList().get(j).equals(headName))
这个判断,应该递归向上计算,直至第0行表头。当前第一个的所有父级单元格不同的时候不可以合并单元格提示的异常或者没有达到的效果
The text was updated successfully, but these errors were encountered: