Do not use private variable, use getter instead (patch #2978828).

This commit is contained in:
BlinK_
2010-03-31 10:28:11 +02:00
committed by Michal Čihař
parent bb0ad40413
commit fad777ecb2

View File

@@ -896,7 +896,7 @@ class PMA_RT {
$pdf->SetDrawColor(200, 200, 200);
// Draws horizontal lines
for ($l = 0; $l < 21; $l++) {
$pdf->line(0, $l * 10, $pdf->fh, $l * 10);
$pdf->line(0, $l * 10, $pdf->getFh(), $l * 10);
// Avoid duplicates
if ($l > 0) {
$pdf->SetXY(0, $l * 10);
@@ -906,7 +906,7 @@ class PMA_RT {
} // end for
// Draws vertical lines
for ($j = 0; $j < 30 ;$j++) {
$pdf->line($j * 10, 0, $j * 10, $pdf->fw);
$pdf->line($j * 10, 0, $j * 10, $pdf->getFw());
$pdf->SetXY($j * 10, 0);
$label = (string) sprintf('%.0f', ($j * 10 - $this->l_marg) * $this->scale + $this->x_min);
$pdf->Cell(5, 7, $label);