Fix cell_height_ratio type (#405)

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
This commit is contained in:
Fran Moreno 2021-12-28 12:53:02 +01:00 committed by GitHub
parent f59c2b8449
commit f5b45b99f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -918,6 +918,7 @@ class TCPDF {
* Default cell height ratio.
* @protected
* @since 3.0.014 (2008-05-23)
* @var float
*/
protected $cell_height_ratio = K_CELL_HEIGHT_RATIO;
@ -2449,6 +2450,7 @@ class TCPDF {
* @param int $fontsize Font size in internal units
* @param boolean $padding If true add cell padding
* @public
* @return float
*/
public function getCellHeight($fontsize, $padding=TRUE) {
$height = ($fontsize * $this->cell_height_ratio);
@ -14062,7 +14064,7 @@ class TCPDF {
/**
* Set the height of the cell (line height) respect the font height.
* @param int $h cell proportion respect font height (typical value = 1.25).
* @param float $h cell proportion respect font height (typical value = 1.25).
* @public
* @since 3.0.014 (2008-06-04)
*/
@ -14073,6 +14075,7 @@ class TCPDF {
/**
* return the height of cell repect font height.
* @public
* @return float
* @since 4.0.012 (2008-07-24)
*/
public function getCellHeightRatio() {