Sorry about the poor error reporting but it is recognized upstream and i
simply wanted the solution to be implemented as soon as possible.

However i will attach a docx file which libreoffice does not open
correctly. I will also attach a pdf which shows the layout as it is.

1: open the attached document tableheader.docx in libreoffice.
2: i expect the rendering to be as in tableheader.pdf
3: please see for yourself. The table is gone and the text is written on one 
line per cell.

The solution seeems to lie in :

diff --git a/writerfilter/source/dmapper/DomainMapper.cxx 
b/writerfilter/source/dmapper/DomainMapper.cxx
index 99dbbf6..c2820ee 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -3508,6 +3508,9 @@ void DomainMapper::lcl_table(Id name, 
writerfilter::Reference<Table>::Pointer_t
void DomainMapper::lcl_substream(Id rName, 
::writerfilter::Reference<Stream>::Pointer_t ref)
{
m_pImpl->appendTableManager( );
+ // Appending a TableManager resets its TableHandler, so we need to append
+ // that as well, or tables won't be imported properly in headers/footers.
+ m_pImpl->appendTableHandler( );
m_pImpl->getTableManager().startLevel();
//import of page header/footer


( a subset of this commit 
http://cgit.freedesktop.org/libreoffice/core/commit/?id=9073da554f407c7aed8af6231313c5355cc266e0&g=libreoffice-3-5
)

But i am unable to compile the libreoffice package myself so i cannot
verify, dies when compiling moz or sysui.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1015093

Title:
  libreoffice writer does not import .docx headers with tables correctly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1015093/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to