Commit 60b3075
committed
gh-91167: Fix cloned turtle pen not clearing completely
When calling clear() on a cloned turtle, it incorrectly cleared the source
turtle's drawings instead of its own. Fix by reinitializing the clone's
currentLine and items to track only its own drawing state.1 parent 1ac9d13 commit 60b3075
2 files changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
674 | 689 | | |
675 | 690 | | |
676 | 691 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2879 | 2879 | | |
2880 | 2880 | | |
2881 | 2881 | | |
| 2882 | + | |
| 2883 | + | |
2882 | 2884 | | |
2883 | 2885 | | |
2884 | 2886 | | |
| |||
0 commit comments