浏览代码

Merge branch 'feature/eta_2.6.9' into debug

hsun 6 天之前
父节点
当前提交
4161264d4e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      services/smart_report.go

+ 2 - 2
services/smart_report.go

@@ -664,10 +664,10 @@ func calculateReportPdfHeight(width int, freeRatio string) (height int, err erro
 		err = fmt.Errorf("布局比例有误, %s", freeRatio)
 		err = fmt.Errorf("布局比例有误, %s", freeRatio)
 		return
 		return
 	}
 	}
-	if n <= 0 {
+	if m <= 0 {
 		err = fmt.Errorf("布局比例有误, %s", freeRatio)
 		err = fmt.Errorf("布局比例有误, %s", freeRatio)
 		return
 		return
 	}
 	}
-	height = int(math.Round(float64(width) * m / n))
+	height = int(math.Round(float64(width) * n / m))
 	return
 	return
 }
 }