Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Illegal argument exception when color wheel is tiny #51

Closed
seedee opened this issue Jan 14, 2024 · 2 comments
Closed

[BUG] Illegal argument exception when color wheel is tiny #51

seedee opened this issue Jan 14, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@seedee
Copy link

seedee commented Jan 14, 2024

Describe the bug
When the component gets too small such as when the frame is resized, the color wheel disappears entirely. However, the selection handle/circle is still visible and creates an exception when you click on it.

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: The saturation value (-5.3851647) must be between [0,1]
	at com.bric.colorpicker.ColorPickerPanel.setHSB(ColorPickerPanel.java:460)
	at com.bric.colorpicker.ColorPickerPanel$ColorPickerMouseInputListener.mousePressed(ColorPickerPanel.java:682)
@seedee seedee added the bug Something isn't working label Jan 14, 2024
@dheid
Copy link
Owner

dheid commented Jan 14, 2024

Thanks for opening the issue! I will look at it

dheid added a commit that referenced this issue Apr 19, 2024
@dheid
Copy link
Owner

dheid commented Apr 19, 2024

I think I fixed this error. You'll find a new version 1.4.8 with the bugfix included.

@dheid dheid closed this as completed Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants