Commit 2c962e34 authored by Sergey Luzyanin's avatar Sergey Luzyanin Committed by Alexander.Trofimov

Не расчитываем размеры по нулевым процентам.

parent 16377679
......@@ -2546,7 +2546,7 @@ CShape.prototype =
var oSectPr = oParentParagraph.Get_SectPr();
if(oSectPr)
{
if(oParaDrawing.SizeRelH)
if(oParaDrawing.SizeRelH && oParaDrawing.SizeRelH.Percent > 0)
{
switch(oParaDrawing.SizeRelH.RelativeFrom)
{
......@@ -2579,7 +2579,7 @@ CShape.prototype =
}
this.extX *= oParaDrawing.SizeRelH.Percent;
}
if(oParaDrawing.SizeRelV)
if(oParaDrawing.SizeRelV && oParaDrawing.SizeRelV.Percent > 0)
{
switch(oParaDrawing.SizeRelV.RelativeFrom)
{
......
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