Commit 57190408 authored by SergeyLuzyanin's avatar SergeyLuzyanin

fix Bug 35070

parent dec0c785
...@@ -102,6 +102,7 @@ ...@@ -102,6 +102,7 @@
if(nNumCol > 1 && oBodyPr) if(nNumCol > 1 && oBodyPr)
{ {
var fSpace = AscFormat.isRealNumber(oBodyPr.spcCol) ? oBodyPr.spcCol : 0; var fSpace = AscFormat.isRealNumber(oBodyPr.spcCol) ? oBodyPr.spcCol : 0;
fSpace = Math.min(fSpace, this.XLimit/(nNumCol - 1));
var fColumnWidth = Math.max((this.XLimit - this.X - (nNumCol - 1)*fSpace)/nNumCol, 0); var fColumnWidth = Math.max((this.XLimit - this.X - (nNumCol - 1)*fSpace)/nNumCol, 0);
X += nColumnIndex*(fColumnWidth + fSpace); X += nColumnIndex*(fColumnWidth + fSpace);
XLimit = X + fColumnWidth; XLimit = X + fColumnWidth;
......
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