fix problem with negative heights on flash files

This commit is contained in:
albert
2011-10-23 15:27:02 -04:00
parent c6aaf45421
commit 9e72bc022d

View File

@@ -272,6 +272,8 @@ class ImageSize
y_max = Integer("0b#{str[(last += bit_length),bit_length]}")
width = (x_max - x_min)/20
height = (y_max - y_min)/20
width *= -1 if width < 0
height *= -1 if height < 0
[width, height]
end
end