[Libreoffice] [PATCH] corrupted tables in docx import

Marcel HB marscel at googlemail.com
Tue May 3 10:46:43 PDT 2011


Hello,
I originally posted this bug here:
https://bugs.freedesktop.org/show_bug.cgi?id=33462

In versions later than OO v3.2.1, importing a docx file that contained a
table with a fixed-height row somewhere caused all other rows in any tables
to adopt this height making the document hard to use.

I found a fix. I'd like to point that this tiny fix makes docx documents
much more usable in LO. According to Noel Power it should be put into
release v3.4.

As I'm not really used to send patches over mailing lists so far, I hope you
can use this kind of format. Feel free to use it under the LGPL v3+ and to
check it in. :)

---
diff --git a/writerfilter/inc/resourcemodel/TableManager.hxx
b/writerfilter/inc/resourcemodel/TableManager.hxx
index 7579ff6..6ea3da5 100644
--- a/writerfilter/inc/resourcemodel/TableManager.hxx
+++ b/writerfilter/inc/resourcemodel/TableManager.hxx
@@ -221,7 +221,7 @@ class TableManager

void resetRowProps()
{
- mpCellProps.reset();
+ mpRowProps.reset();
}

void setRowProps(PropertiesPointer pProps)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110503/d1b1211c/attachment.htm>


More information about the LibreOffice mailing list