Skip to content
Snippets Groups Projects
Commit 0e2ae407 authored by rswindell's avatar rswindell
Browse files

Insure the rows property of the object returned from read() is a whole number.

parent 3f8ec4b7
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ function read(fname)
obj.ice_color = true;
if(obj.datatype == defs.datatype.bin) {
obj.cols = obj.filetype * 2;
obj.rows = obj.filesize / (obj.cols * 2);
obj.rows = Math.floor(obj.filesize / (obj.cols * 2));
} else {
obj.cols = obj.tinfo1;
obj.rows = obj.tinfo2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment