You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added this exception in SetRobust, because otherwise the ploteditor changes the underlying color scheme images, making the entire GUI go bonkers.
// images should not be copied per content: just set the pointer!// otherwise the original images (esp colors!) are altered.ifimg, ok:=to.(*image.Image); ok {
iffimg, ok:=from.(image.Image); ok {
*img=fimgreturnnil
}
}
In general there is an ambiguity in copying pointers whether it is "deep" or "shallow". We need to figure out a better general-purpose solution to this issue.
This issue also arises in this case because we made the colors.Scheme colors images instead of underlying color.RGBA -- the images are what we use everywhere because it is the most general representation of color, and it saves having to convert the RGBA to an image in 100's of cases across the codebase.
How to reproduce
comment out the above.,
Example code
No response
Relevant output
No response
Platform
macOS
The text was updated successfully, but these errors were encountered:
This bug is happening with the color picker still, even with the above code in reflectx.SetRobust -- there is some additional logic that needs to be updated in color picker.
Describe the bug
I added this exception in SetRobust, because otherwise the ploteditor changes the underlying color scheme images, making the entire GUI go bonkers.
In general there is an ambiguity in copying pointers whether it is "deep" or "shallow". We need to figure out a better general-purpose solution to this issue.
This issue also arises in this case because we made the colors.Scheme colors images instead of underlying color.RGBA -- the images are what we use everywhere because it is the most general representation of color, and it saves having to convert the RGBA to an image in 100's of cases across the codebase.
How to reproduce
comment out the above.,
Example code
No response
Relevant output
No response
Platform
macOS
The text was updated successfully, but these errors were encountered: