Skip Menu |

This queue is for tickets about the OpenOffice-OODoc CPAN distribution.

Report information
The Basics
Id: 16864
Status: resolved
Priority: 0/
Queue: OpenOffice-OODoc

People
Owner: jmgdoc [...] cpan.org
Requestors: maxera [...] dstranky.cz
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 2.018
Fixed in: 2.017



Subject: undefined $table in getTableCell
Source: my $doc = ooDocument(file => $filename); my $sheet = $doc->getTable(0, 10, 10); my $obsah=$doc->getCellValue($sheet, 1, 1); Result: Can't call method "child" on an undefined value at /usr/local/share/perl/5.8.4/OpenOffice/OODoc/Text.pm line 1906. Note: Used to be OK in 2.017. Solution: Apply the attached patch.
--- OpenOffice/OODoc/Text.pm.orig 2006-01-02 14:48:24.432408063 +0100 +++ OpenOffice/OODoc/Text.pm 2006-01-02 14:46:35.554357417 +0100 @@ -1897,12 +1897,16 @@ @_ = OpenOffice::OODoc::Text::_coord_conversion(@_); my $r = shift || 0; my $c = shift || 0; - unless (ref $p1) + if (! ref $p1) { my $context = shift; $table = $self->getTable($p1, $context) or return undef; } + else { + $table=$p1; + } + $row = $table->child($r, 'table:table-row') or return undef; $cell = $row->selectChildElement
[guest - Mon Jan 2 09:03:29 2006]: Show quoted text
> Source: > my $doc = ooDocument(file => $filename); > my $sheet = $doc->getTable(0, 10, 10); > my $obsah=$doc->getCellValue($sheet, 1, 1); > > Result: > Can't call method "child" on an undefined value at > /usr/local/share/perl/5.8.4/OpenOffice/OODoc/Text.pm line 1906. > > Note: > Used to be OK in 2.017. > > Solution: > Apply the attached patch.
Thanks for your report. The bug has immediately been fixed in 2.018 (released today).
The bug has been fixed in 2.019 Please upgrade Thanks for comments