Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: denisjuk [...] euh-e.edu.pl
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.028
Fixed in: 2.029



Subject: cellSpan does not returns cell span anymore
The function cellSpan does not return cell span anymore in version 2.0.28 (and may be in 2.027 since this change was announced in 2.027). The new code even does not contain any "return $someSpan". Moreover, if you will not provide $hspan and/or $vspan, you will get "using undefined value in addition" warning. So, it does not correspond the documentation. Personally I used this function for obtaining the sell span in many of my scripts -- they do not work after upgrade. I would like to suggest to include the old (one-dimensional as in 2.025) function in future distribution and to use other name (may be cellSpans or biCellSpan??) for the new function.
Le Lun. Nov. 20 08:23:07 2006, alexanderdenisjuk a écrit : Show quoted text
> The function cellSpan does not return cell span anymore in version > 2.0.28 (and may be in 2.027 since this change was announced in 2.027). > The new code even does not contain any "return $someSpan". Moreover, > if you will not provide $hspan and/or $vspan, you will get "using > undefined value in addition" warning. So, it does not correspond the > documentation. > Personally I used this function for obtaining the sell span in many of > my scripts -- they do not work after upgrade. > I would like to suggest to include the old (one-dimensional as in > 2.025) function in future distribution and to use other name (may be > cellSpans or biCellSpan??) for the new function.
Thanks for your report. The bug is open. cellSpan() will be changed in future distribution in order to return the horizontal span in scalar context (so it should be OK for your existing scripts), and both the horizontal et vertical spans in list context. In the meantime, the simplest way to get an existing cell horizontal span is the following instruction: $span = $cell->att('table:number-columns-spanned');
Subject: Re: [rt.cpan.org #23501] cellSpan does not returns cell span anymore
Date: Tue, 21 Nov 2006 21:59:31 +0100
To: bug-OpenOffice-OODoc [...] rt.cpan.org
From: Alexander Denisjuk <denisjuk [...] euh-e.edu.pl>
Dnia poniedziałek 20 listopada 2006 22:01, via RT napisał: Show quoted text
> cellSpan() will be changed in future distribution in order to return the > horizontal span in scalar context (so it should be OK for your existing > scripts), and both the horizontal et vertical spans in list context. >
It's a very good idea. It would be nice if cellSpan($cell,$hspan) will work as the old version, i.e. set the horizontal span only and do not affect vertical.
Bug fixed in 2.029