Merge branch 'QA_3_3'

This commit is contained in:
Michal Čihař
2010-03-31 10:28:40 +02:00

View File

@@ -893,7 +893,7 @@ class PMA_RT {
$pdf->SetDrawColor(200, 200, 200); $pdf->SetDrawColor(200, 200, 200);
// Draws horizontal lines // Draws horizontal lines
for ($l = 0; $l < 21; $l++) { 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 // Avoid duplicates
if ($l > 0) { if ($l > 0) {
$pdf->SetXY(0, $l * 10); $pdf->SetXY(0, $l * 10);
@@ -903,7 +903,7 @@ class PMA_RT {
} // end for } // end for
// Draws vertical lines // Draws vertical lines
for ($j = 0; $j < 30 ;$j++) { 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); $pdf->SetXY($j * 10, 0);
$label = (string) sprintf('%.0f', ($j * 10 - $this->l_marg) * $this->scale + $this->x_min); $label = (string) sprintf('%.0f', ($j * 10 - $this->l_marg) * $this->scale + $this->x_min);
$pdf->Cell(5, 7, $label); $pdf->Cell(5, 7, $label);