Commit a0d25af
committed
Fix RangeSlider.set_val when outside existing value
The clipping in the setter ensures that min <= max, but if you are
setting both values outside the existing range, this will incorrectly
set new minimum to old maximum and vice versa.
The tests also passed accidentally because all the new ranges overlapped
with the old, and did not trigger this issue.
Fixes matplotlib#253381 parent 5e8c140 commit a0d25af
2 files changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1297 | 1297 | | |
1298 | 1298 | | |
1299 | 1299 | | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
1303 | 1303 | | |
1304 | 1304 | | |
1305 | | - | |
| 1305 | + | |
1306 | 1306 | | |
1307 | 1307 | | |
1308 | 1308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
705 | | - | |
| 705 | + | |
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
| |||
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
950 | | - | |
951 | | - | |
952 | | - | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
953 | 953 | | |
954 | 954 | | |
955 | 955 | | |
| |||
0 commit comments