Kaydet (Commit) 6128c10f authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#95321 tables in headers/footers with wrong content

Change-Id: I937ed893dfd9919bf48b8fd38a1b83c524200532
üst 2b4d7be9
This diff was suppressed by a .gitattributes entry.
......@@ -419,6 +419,16 @@ DECLARE_WW8IMPORT_TEST(testBnc863018, "bnc863018.doc")
CPPUNIT_ASSERT_EQUAL(sal_Int32(5002), getProperty<sal_Int32>(xTable, "TopMargin"));
}
DECLARE_WW8IMPORT_TEST(testTdf95321, "tdf95321.doc")
{
// The problem was that there should be content in the second cell
// but there wasn't.
uno::Reference<text::XTextTablesSupplier> xTextTablesSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XIndexAccess> xIndexAccess(xTextTablesSupplier->getTextTables(), uno::UNO_QUERY);
uno::Reference<text::XTextTable> xTable(xIndexAccess->getByIndex(0), uno::UNO_QUERY);
CPPUNIT_ASSERT_EQUAL(OUString("Second Column"), uno::Reference<text::XTextRange>(xTable->getCellByName("B1"), uno::UNO_QUERY)->getString());
}
DECLARE_WW8IMPORT_TEST(testBnc875715, "bnc875715.doc")
{
uno::Reference<text::XTextSectionsSupplier> xTextSectionsSupplier(mxComponent, uno::UNO_QUERY);
......
......@@ -3540,7 +3540,7 @@ bool SwWW8ImplReader::ReadChar(long nPosCp, long nCpOfs)
//
//So the 0x7 should be right at the end of the previous
//range to be a real cell-end.
if (pPap->nOrigStartPos == nCpOfs+nPosCp+1 ||
if (pPap->nOrigStartPos == nPosCp+1 ||
pPap->nOrigStartPos == WW8_CP_MAX)
{
TabCellEnd(); // Table cell/row end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment