Merge remote branch 'origin/master'

This commit is contained in:
Pootle server 2011-01-25 04:40:31 +01:00
commit 6ca2a7bef3
2 changed files with 6 additions and 3 deletions

View File

@ -152,7 +152,7 @@ class PMA_PDF extends TCPDF
// Now let's start to write the table
$row = 0;
$tmpheight = array();
$maxpage = 0;
$maxpage = $this->page;
while ($data = PMA_DBI_fetch_row($this->results)) {
$this->page = $currpage;

View File

@ -979,14 +979,17 @@ class PMA_Pdf_Relation_Schema extends PMA_Export_Relation_Schema
*/
private function _strokeGrid()
{
global $pdf, $with_doc;
global $pdf;
$gridSize = 10;
$labelHeight = 4;
$labelWidth = 5;
if ($with_doc) {
if ($this->withDoc) {
$topSpace = 6;
$bottomSpace = 15;
} else {
$topSpace = 0;
$bottomSpace = 0;
}
$pdf->SetMargins(0, 0);