Subject: | File::save() sees two 'content' in $self->{'linked'} preventing changes to be saved |
This is where the two contents show up in File.pm:680
sub save ...
...
my %newmembers = ();
foreach my $nm (@{$self->{'linked'}})
{
$newmembers{$nm->{'member'}} = $nm->getXMLContent;
}
...
In my case, it would seem that
when setText() is invoked on an element that was selected via a
Text::selectElementsByContent() rather than via
Document::selectElementsBytContent(),
then the order of the two linked 'content' members is "happy", and the
changes are saved.
If I change only:
- $docText->selectElementsByContent(".",\&Filter, $docText);
+ $doc->selectElementsByContent(".",\&Filter, $docText);
then the 'content' members are swapped and the change is not saved.
--
$ uname -a
Linux jpabgrall 2.4.21-37.ELsmp #1 SMP Wed Sep 7 13:32:18 EDT 2005
x86_64 x86_64 x86_64 GNU/Linux
$ perl --version
This is perl, v5.8.7 built for x86_64-linux-thread-multi
OpenOffice/OODoc/Document.pm:our $VERSION = 2.021;
OpenOffice/OODoc/File.pm:our $VERSION = 2.111;
OpenOffice/OODoc/Image.pm:our $VERSION = 2.015;
OpenOffice/OODoc/Manifest.pm:our $VERSION = 2.003;
OpenOffice/OODoc/Meta.pm:our $VERSION = 2.007;
OpenOffice/OODoc/Styles.pm:our $VERSION = 2.015;
OpenOffice/OODoc/Text.pm:our $VERSION = 2.218;
OpenOffice/OODoc/XPath.pm:our $VERSION = 2.209;
--
jpa