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>
main
sigonasr2, Sig, Sigo 3 years ago committed by GitHub
parent 9c207e2f2a
commit c0379543e6
  1. BIN
      bin/RabiClone.jar
  2. 2
      src/sig/engine/String.java

Binary file not shown.

@ -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() {

Loading…
Cancel
Save