Commit 8ac2b7f3 authored by konovalovsergey's avatar konovalovsergey

negative column width

parent 3f5054d1
......@@ -5665,6 +5665,9 @@
else if ( c_oSerWorksheetColTypes.Width == type )
{
oCol.width = this.stream.GetDoubleLE();
if (oCol.width < 0) {
oCol.width = 0;
}
if(AscCommon.CurFileVersion < 2)
oCol.CustomWidth = 1;
}
......
......@@ -4386,7 +4386,7 @@ Woorksheet.prototype.setColHidden=function(bHidden, start, stop){
else
{
col.hd = null;
if(0 == col.width)
if(0 >= col.width)
col.width = null;
}
var oNewProps = col.getWidthProp();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment