-
Notifications
You must be signed in to change notification settings - Fork 49
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
Bugfix/resolution and subimage issues #518
Conversation
Prevents RasterFormatException
…/resolution-and-subimage-issues
if (point.getY() + height > fullImg.getHeight()) { | ||
height = fullImg.getHeight() - point.getY(); | ||
} | ||
if (point.getX() + width == 0) { |
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.
I think that instead of those 2 if
's, we can change if
above to:
width = Math.max(1, fullImg.getWidth() - point.getX()
(same for height)
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.
done ;)
…ssues' into bugfix/resolution-and-subimage-issues
</urls> | ||
</test> | ||
|
||
<test name="S-comparator-Layout-Auto-Height-0px-Page"> |
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.
I am not 100% sure but with a change in integration tests you should also update https://github.com/Cognifide/aet/blob/master/integration-tests/sanity-functional/src/test/resources/features/filtering.feature or/and https://github.com/Cognifide/aet/blob/master/integration-tests/sanity-functional/src/test/java/com/cognifide/aet/sanity/functional/HomePageTilesTest.java
I remember that documentation contains some tutorial on how to run these tests but unfortunately I cannot find it :P
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.
Good job ;)
Fixed bug in Resolution Modifier
Description
When user did not set
height
parameter, it is calculated automatically. To prevent error, minimum height is set to 1px, when site height is 0px.Motivation and Context
Closes #384
Screenshots (if appropriate)
Upgrade notes (if appropriate)
Types of changes
Checklist:
I hereby agree to the terms of the AET Contributor License Agreement.