**Reproduction steps** 1. Draw rectangle 2. Apply eraser on the right side of the rectangle 3. Undo the eraser command **Bug** Erased area:  Restored area after undo (there is small 1px line which is not restored): 