Commit 9efef4e
committed
Deeper marker copies in Line2D update_from
Markers already support a copy construction: `MarkerStyle.set_marker`
accepts other instances of `MarkerStyle`. However, some Artists, when
copying markers, instead construct the copy from the other instance's
`get_marker` and `get_fillstyle` methods. This destroys (unsupported)
manipulations the user might make to the marker, as discovered in
issue #18600.
By switching constructors, we can get a more faithful copy without
explicitly relying on any of `MarkerStyle`'s private methods in places
they do not belong.1 parent f9d2918 commit 9efef4e
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1299 | 1299 | | |
1300 | 1300 | | |
1301 | 1301 | | |
1302 | | - | |
1303 | | - | |
| 1302 | + | |
1304 | 1303 | | |
1305 | 1304 | | |
1306 | 1305 | | |
| |||
0 commit comments