소스 검색

die die die buggy code: fix handling of background colors in case it is provided as a cell property

Ralf S. Engelschall 18 년 전
부모
커밋
7862e67667
1개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 10 1
      perl-gfx/perl-gfx.patch

+ 10 - 1
perl-gfx/perl-gfx.patch

@@ -86,7 +86,7 @@ Index: PostScript-Simple-0.07/lib/PostScript/Simple.pm
    }
 Index: PDF-Table-0.9.3/lib/PDF/Table.pm
 --- PDF-Table-0.9.3/lib/PDF/Table.pm.orig	2006-12-27 15:44:26 +0100
-+++ PDF-Table-0.9.3/lib/PDF/Table.pm	2007-10-31 13:20:00 +0100
++++ PDF-Table-0.9.3/lib/PDF/Table.pm	2007-10-31 14:16:23 +0100
 @@ -384,15 +384,14 @@
  
  				# Keep a running total of the overall min and max widths
@@ -120,6 +120,15 @@ Index: PDF-Table-0.9.3/lib/PDF/Table.pm
  						{
  						    $gfx_bg->fillcolor($col_props->[$j]->{'background_color'});
  						}
+@@ -621,7 +620,7 @@
+ 				$gfx->move(  $xbase , $cur_y );
+ 				$gfx->hline( $xbase + $width );
+ 				$rows_counter++;
+-				$row_cnt++ unless ( $first_row );
++				$row_cnt++ unless ( $first_row  and ref $header_props );
+ 				$first_row = 0;
+ 			}# End of while(scalar(@{$data}) and $cur_y-$row_h > $bot_marg)
+ 
 @@ -679,12 +678,23 @@
  
  	}