diff options
author | Oliver Specht <oliver.specht@cib.de> | 2025-01-28 14:16:07 +0100 |
---|---|---|
committer | Gabor Kelemen <gabor.kelemen.extern@allotropia.de> | 2025-02-11 21:26:30 +0100 |
commit | 0e0ae62ded3f72768bc06e38253dacbf5af0ed5a (patch) | |
tree | 60471ceb5ff817d8415b9c7aa7f7f986b6c36476 /sw/qa | |
parent | fe39e60102f34f6dba59828579ee75e4c05486e0 (diff) |
tdf#164266 RTF: border distance in style is not applied to table
Attributes from styles are only valid if they are repeated at the
location where the style is applied.
Change-Id: I0083b833266346084d51aaf78a162b96012a0dab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180835
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Tested-by: Jenkins
Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/rtfimport/rtfimport.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx index 515fae3c4a5c..54315245036d 100644 --- a/sw/qa/extras/rtfimport/rtfimport.cxx +++ b/sw/qa/extras/rtfimport/rtfimport.cxx @@ -1958,6 +1958,13 @@ CPPUNIT_TEST_FIXTURE(Test, test162198Tdf) sal_Int32 nRightDistance = getProperty<sal_Int32>(xCellPropSet, u"LeftBorderDistance"_ustr); CPPUNIT_ASSERT_EQUAL_MESSAGE("left cell spacing to contents", sal_Int32(9), nLeftDistance); CPPUNIT_ASSERT_EQUAL_MESSAGE("right cell spacing to contents", sal_Int32(9), nRightDistance); + + xCell = xTable1->getCellByName(u"B1"_ustr); + xCellPropSet = uno::Reference<beans::XPropertySet>(xCell, uno::UNO_QUERY_THROW); + nLeftDistance = getProperty<sal_Int32>(xCellPropSet, u"LeftBorderDistance"_ustr); + nRightDistance = getProperty<sal_Int32>(xCellPropSet, u"LeftBorderDistance"_ustr); + CPPUNIT_ASSERT_EQUAL_MESSAGE("left cell spacing to contents", sal_Int32(9), nLeftDistance); + CPPUNIT_ASSERT_EQUAL_MESSAGE("right cell spacing to contents", sal_Int32(9), nRightDistance); } CPPUNIT_TEST_FIXTURE(Test, test153192Tdf) |