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

Fix to stop creating zero-size image #333

Merged
merged 6 commits into from
May 20, 2016

Conversation

kogaki
Copy link
Member

@kogaki kogaki commented May 19, 2016

round(inch x dpi) can result in zero-size image. Image size should greater than 1x1.
This can be partial problem of #162

@kogaki
Copy link
Member Author

kogaki commented May 19, 2016

Jenkins

@@ -2116,7 +2116,6 @@ TImageP TImageReaderTzl::load14()
throw TException("Loading tlv: bad icon size.");
fread(&actualBuffSize, sizeof(TINT32), 1, chan);

assert(actualBuffSize > 0 && actualBuffSize <= (int)(iconLx * iconLx * sizeof(TPixelCM32)));
Copy link
Member Author

@kogaki kogaki May 19, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is duplication of the line below

@kogaki kogaki force-pushed the fix/creating_zero_size_image branch from 141228f to 3970daa Compare May 20, 2016 07:07
@skitaoka
Copy link
Member

LGTM

@skitaoka skitaoka merged commit cd46cc8 into opentoonz:master May 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants