tdf#157589 tdf#153969: Revert "sdext.pdfimport Writer: Do not visit...

... DrawElement twice in WriterXmlEmitter"

This reverts commit 9ea9d3ccc0.

The reason for the revert:
It causes regressions as indicated in tdf#157589 and tdf#153969.
That commit may be my misunderstanding of the code.

Change-Id: Idd188bf83721d309623a7f8484d064327a3a23af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159811
Tested-by: Jenkins
Reviewed-by: Kevin Suo <suokunlong@126.com>
This commit is contained in:
Kevin Suo
2023-11-28 03:08:39 +01:00
parent 38ef707aaf
commit 5589659829
@@ -413,7 +413,7 @@ void WriterXmlEmitter::visit( DocumentElement& elem, const std::list< std::uniqu
// only DrawElement types
for( auto it = elem.Children.begin(); it != elem.Children.end(); ++it )
{
if( dynamic_cast<DrawElement*>(it->get()) != nullptr )
if( dynamic_cast<DrawElement*>(it->get()) == nullptr )
(*it)->visitedBy( *this, it );
}