Commit 3ab8308
committed
Fix disconnection of callbacks when draggable artist is deparented.
Once a draggable artist has been removed from its parent figure, we
cannot access `self.canvas` (i.e. a property for
`self.ref_artist.figure.canvas`) anymore to disconnect the relevant
callbacks. Instead, we should keep track from the very beginning (in
the DraggableBase constructor) of the place from which the callbacks
should be disconnected.1 parent 73394f2 commit 3ab8308
2 files changed
+22
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1500 | 1500 | | |
1501 | 1501 | | |
1502 | 1502 | | |
1503 | | - | |
1504 | | - | |
1505 | | - | |
1506 | | - | |
1507 | | - | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
1508 | 1512 | | |
1509 | 1513 | | |
1510 | 1514 | | |
1511 | 1515 | | |
1512 | 1516 | | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
1513 | 1520 | | |
1514 | 1521 | | |
1515 | 1522 | | |
| |||
1536 | 1543 | | |
1537 | 1544 | | |
1538 | 1545 | | |
1539 | | - | |
1540 | | - | |
1541 | 1546 | | |
1542 | 1547 | | |
1543 | 1548 | | |
1544 | 1549 | | |
1545 | 1550 | | |
1546 | 1551 | | |
1547 | | - | |
1548 | | - | |
1549 | 1552 | | |
1550 | 1553 | | |
1551 | 1554 | | |
| |||
1558 | 1561 | | |
1559 | 1562 | | |
1560 | 1563 | | |
1561 | | - | |
1562 | | - | |
1563 | | - | |
1564 | | - | |
1565 | | - | |
1566 | | - | |
1567 | | - | |
1568 | | - | |
| 1564 | + | |
| 1565 | + | |
1569 | 1566 | | |
1570 | 1567 | | |
1571 | 1568 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
0 commit comments