When text is replaced the bounds of the string have to be complely re-analyzed

Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com>
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
sigonasr2, Sig, Sigo 2022-06-09 16:11:30 +00:00 committed by GitHub
parent 9c207e2f2a
commit c0379543e6
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View File

@ -94,6 +94,8 @@ public class String{
*/
public String replace(int start,int end,java.lang.String str) {
this.sb.replace(start,end,str);
bounds = new Point(0,1);
updateBounds(str);
return this;
}
public int length() {