noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 07/12: Debugging info to remove


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 07/12: Debugging info to remove
Date: Mon, 25 Jan 2016 22:58:37 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 014fd5ce8b65e0d6aec1a5a2ebc844f042d936ac
Author: Dany De Bontridder <address@hidden>
Date:   Mon Jan 25 19:38:59 2016 +0100

    Debugging info to remove
---
 include/lib/class_pdf.php |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/include/lib/class_pdf.php b/include/lib/class_pdf.php
index 6821fc0..f3bd6bd 100644
--- a/include/lib/class_pdf.php
+++ b/include/lib/class_pdf.php
@@ -119,6 +119,12 @@ class PDF extends TFPDF
                  * faire un saut de page (renvoit true) si d├ępasse
                  */
                 $y=$this->GetY();
+                
+                $sizetext=$this->GetStringWidth($this->cells[$i]->text);
+                $this->cells[$i]->text .= sprintf("size : %d",$sizetext);
+                $this->cells[$i]->text .= sprintf("cellwidth: 
%d",$this->cells[$i]->width);
+                $this->cells[$i]->text .= sprintf("cellheigth: 
%d",$this->cells[$i]->height);
+                
                 if ( $y > ($this->h - $this->bMargin-20))
                     return true;
             }
@@ -129,7 +135,6 @@ class PDF extends TFPDF
     {
         static $e=0;
         $e++;
-        if ( $e == 40 ) xdebug_break ();
         if ( $this->check_page_add() == true ) $this->AddPage ();
         $this->bigger=0;
         $size=count($this->cells);
@@ -194,7 +199,7 @@ class PDF extends TFPDF
     }
     function line_new($p_step=null){
             $this->print_row();
-            if ( $this->bigger==0) 
+           if ( $this->bigger==0) 
                 parent::Ln($p_step);
             else 
                 parent::Ln($this->bigger);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]