[otrs-cvs] CVS: otrs/Kernel/System PDF.pm,1.7,1.8
cvs-log at otrs.org
cvs-log at otrs.org
Tue Aug 8 15:35:14 CEST 2006
Update of /home/cvs/otrs/Kernel/System
In directory lancelot:/tmp/cvs-serv31669/Kernel/System
Modified Files:
PDF.pm
Log Message:
height param in _TextCalculate() now optional
Index: PDF.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/PDF.pm,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** PDF.pm 8 Aug 2006 12:03:18 -0000 1.7
--- PDF.pm 8 Aug 2006 12:35:12 -0000 1.8
***************
*** 768,772 ****
Type => 'ReturnLeftOver',
Width => $Param{ColumnData}->[$Column]->{Width} + $OutputCells{CellSpaceExtra},
- Height => 999999999999999999,
Font => $Param{CellData}->[$Row]->[$Column]->{Font},
FontSize => $Param{CellData}->[$Row]->[$Column]->{FontSize},
--- 768,771 ----
***************
*** 2000,2004 ****
# Type => 'Cut', # (ReturnLeftOver|ReturnLeftOverHard|Cut)
# Width => 300, # available width
! # Height => 200, # available height
# Font => 'Courier', # font of text
# FontSize => 6, # fontsize of text
--- 1999,2003 ----
# Type => 'Cut', # (ReturnLeftOver|ReturnLeftOverHard|Cut)
# Width => 300, # available width
! # Height => 200, # (optional) available height
# Font => 'Courier', # font of text
# FontSize => 6, # fontsize of text
***************
*** 2018,2022 ****
my @PossibleRows;
# check needed stuff
! foreach (qw(Text Type Width Height Font FontSize Lead)) {
if (!defined ($Param{$_})) {
$Self->{LogObject}->Log(Priority => 'error', Message => "Need $_!");
--- 2017,2021 ----
my @PossibleRows;
# check needed stuff
! foreach (qw(Text Type Width Font FontSize Lead)) {
if (!defined ($Param{$_})) {
$Self->{LogObject}->Log(Priority => 'error', Message => "Need $_!");
***************
*** 2032,2035 ****
--- 2031,2038 ----
return;
}
+ if (!defined($Param{Height})) {
+ $Param{Height} = 999999999999999999;
+ }
+
if ($Param{Width} <= 0 || $Param{Height} <= 0 ) {
$Return{LeftOver} = $Param{Text};
More information about the cvs-log
mailing list