Changeset 7655 for trunk/filemanager/tp/dompdf/include/cellmap.cls.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/filemanager/tp/dompdf/include/cellmap.cls.php
r3019 r7655 382 382 383 383 // Resolve the borders 384 for ( $i = 0; $i < $num_rows+1; $i++) {384 for ( $i = 0; $i < $num_rows+1; ++$i) { 385 385 $this->_resolve_border($start_row + $i, 0, "vertical", $bp["left"]); 386 386 $this->_resolve_border($start_row + $i, $this->_num_cols, "vertical", $bp["right"]); 387 387 } 388 388 389 for ( $j = 0; $j < $this->_num_cols; $j++) {389 for ( $j = 0; $j < $this->_num_cols; ++$j) { 390 390 $this->_resolve_border($start_row, $j, "horizontal", $bp["top"]); 391 391 $this->_resolve_border($this->__row, $j, "horizontal", $bp["bottom"]); … … 421 421 $ac = $this->__col; 422 422 while ( isset($this->_cells[$this->__row][$ac]) ) 423 $ac++;423 ++$ac; 424 424 $this->__col = $ac; 425 425 426 426 // Rows: 427 for ( $i = 0; $i < $rowspan; $i++) {427 for ( $i = 0; $i < $rowspan; ++$i ) { 428 428 $row = $this->__row + $i; 429 429 430 430 $this->_frames[ $key ]["rows"][] = $row; 431 431 432 for ( $j = 0; $j < $colspan; $j++)432 for ( $j = 0; $j < $colspan; ++$j) 433 433 $this->_cells[$row][$this->__col + $j] = $frame; 434 434 … … 443 443 444 444 // Columns: 445 for ( $j = 0; $j < $colspan; $j++) {445 for ( $j = 0; $j < $colspan; ++$j ) { 446 446 $col = $this->__col + $j; 447 447 $this->_frames[ $key ]["columns"][] = $col; … … 493 493 $min = 0; 494 494 $max = 0; 495 for ( $cs = 0; $cs < $colspan; $cs++) {495 for ( $cs = 0; $cs < $colspan; ++$cs ) { 496 496 497 497 // Resolve the frame's width(s) with other cells … … 514 514 // The frame needs more space. Expand each sub-column 515 515 $inc = ($frame_min - $min) / $colspan; 516 for ($c = 0; $c < $colspan; $c++) {516 for ($c = 0; $c < $colspan; ++$c) { 517 517 $col =& $this->get_column($this->__col + $c); 518 518 $col["min-width"] += $inc; … … 522 522 if ( $frame_max > $max ) { 523 523 $inc = ($frame_max - $max) / $colspan; 524 for ($c = 0; $c < $colspan; $c++) {524 for ($c = 0; $c < $colspan; ++$c) { 525 525 $col =& $this->get_column($this->__col + $c); 526 526 $col["max-width"] += $inc; … … 544 544 $i = 0; 545 545 while ( isset($this->_cells[$this->__row][$i]) ) 546 $i++;546 ++$i; 547 547 548 548 $this->__col = $i;
Note: See TracChangeset
for help on using the changeset viewer.