Commit 7af78df
committed
Do not allow memoized median output to be modified
Make a copy of the memoized median filter output so that we can be
sure the array will not be modified.
This was causing a bug where, if you had one state file loaded in
with the median filter applied, and you load in another state file
that has the median filter applied, the memoized output was somehow
modified and made the image data invalid.
Making a copy of the memoized output ensures that it won't be modified.
Signed-off-by: Patrick Avery <[email protected]>1 parent a10a15f commit 7af78df
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
971 | 971 | | |
972 | 972 | | |
973 | 973 | | |
| 974 | + | |
| 975 | + | |
974 | 976 | | |
975 | 977 | | |
976 | 978 | | |
977 | | - | |
| 979 | + | |
978 | 980 | | |
979 | 981 | | |
980 | 982 | | |
| |||
0 commit comments