Subject: | bug in "getTableByName" function |
Hello,
I'm your OpenOffice module for some weeks, which I found very useful.
But while trying to use the getTableByName function of the Text.pm
module I got a "use of uninitialized variable" error message. After look
at the source code of this function I found what I think is a bug in it
: a "$n" variable is used while a "$name" is defined and assigned a
value. By replacing $n by $name, this function works.
Original code of the function :
sub getTableByName
{
my $self = shift;
my $name = $self->inputTextConversion(shift);
my $table = $self->getNodeByXPath
("//table:table[\@table:name=\"$n\"]");
return $self->getTable($table, @_);
}
Corrected code :
sub getTableByName
{
my $self = shift;
my $name = $self->inputTextConversion(shift);
my $table = $self->getNodeByXPath
("//table:table[\@table:name=\"$name\"]");
return $self->getTable($table, @_);
}
I am working on the lastest module version. Here is the header of the
Text.pm file :
# $Id : Text.pm 2.236 2009-02-18 JMG$
Could you please fix this bug?