Fix attribute replace bug in TextAXNodeWrapper (#24986)
When replacing an int/float/bool attribute on the test node, we want to erase the range from the iterator returned by remove_if to end(), which may be an empty range. In the case where remove_if() returns end(), the single-parameter variant of erase() attempts to remove an element past the end of the container.
Showing
想要评论请 注册 或 登录