-
Notifications
You must be signed in to change notification settings - Fork 62
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
Casts values to double - Fix for ticket SNAP-1045 #72
base: master
Are you sure you want to change the base?
Conversation
Thanks for this. But this is only a small part of the complete fix. |
Ok. I should be able to implement the remainder of the changes needed this week and update this pull request with the new commits when I complete the necessary changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ResamplingOp actually does not require many changes. Most work needs to be done here to adapt the spinner to support double values.
@@ -417,9 +417,9 @@ private void updateTargetResolutionTargetWidthAndHeight() { | |||
|
|||
private void reactToSourceProductChange(Product product) { | |||
if (product != null) { | |||
resolutionSpinner.setValue(determineResolutionFromProduct(product)); | |||
resolutionSpinner.setValue(new Double(determineResolutionFromProduct(product))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than creating a Double object here, make determineResolutionFromProduct return a double in the first place.
This change allows the Resampling dialog to now successfully open and resample imagery, casting values to Double.