diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-07-16 22:04:02 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-07-17 09:03:42 +0200 |
commit | 0c91f8f839d36c8b5af272b1d3c835d2f4af6b65 (patch) | |
tree | d7493266e0dbf84b3d68842ce889bd17a32a29dd /sw/qa/extras/rtfimport | |
parent | db20ca1171475967e60e416df09a12ec565e2d8b (diff) |
tdf#81943 sw RTF import: fix missing wrap in background for in-table shape
Regression from commit 015fd55c94b7b650ed8e572cafaf3b0f903b01b9
(tdf#96275 RTF import: fix anchor of shapes inside tables, 2016-05-10),
remember more context when delaying the import of a shape.
Change-Id: Idc02868eb3fe5b7637c9fd00c841bf71423adf2b
Reviewed-on: https://gerrit.libreoffice.org/57531
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/qa/extras/rtfimport')
-rw-r--r-- | sw/qa/extras/rtfimport/data/tdf81943.rtf | 48 | ||||
-rw-r--r-- | sw/qa/extras/rtfimport/rtfimport.cxx | 6 |
2 files changed, 54 insertions, 0 deletions
diff --git a/sw/qa/extras/rtfimport/data/tdf81943.rtf b/sw/qa/extras/rtfimport/data/tdf81943.rtf new file mode 100644 index 000000000000..28b3f430abce --- /dev/null +++ b/sw/qa/extras/rtfimport/data/tdf81943.rtf @@ -0,0 +1,48 @@ +{\rtf1 +{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0; +\red255\green255\blue255;\red0\green0\blue128;} +\trowd \irow0\cellx6300\cellx10800\pard\plain +{\rtlch\fcs1 \af1 \ltrch\fcs0 \lang1024\langfe1024\noproof +{\shp +{\*\shpinst\shpleft-199\shptop-18\shpright11028\shpbottom2236\shpfhdr0\shpbxpage\shpbxignore\shpbypage\shpbyignore\shpwr3\shpwrk0\shpfblwtxt1\shpz0\shplockanchor\shplid1026 +{\sp +{\sn shapeType} +{\sv 75} +} +{\sp +{\sn pib} +{\sv +{\pict\picscalex99\picscaley99\piccropl0\piccropr0\piccropt0\piccropb0\picw19905\pich3997\picwgoal11285\pichgoal2266\pngblip +89504e470d0a1a0a0000000d494844520000000400000004080200000026930929000000097048597300002e2300002e230178a53f760000000774494d4507e2 +07090f031bf2645ea1000000144944415408d763cc63f8cf00034c0c480037070047bd01759ad735e20000000049454e44ae426082} +} +} +{\sp +{\sn posrelh} +{\sv 1} +} +{\sp +{\sn posrelv} +{\sv 1} +} +{\sp +{\sn fBehindDocument} +{\sv 1} +} +} +} +} +{\rtlch\fcs1 \af1 \ltrch\fcs0 \cell } +\pard \ltrpar \intbl\cell +\pard\plain \ltrpar\ql \li0\ri0\intbl\aspnum \rtlch\fcs1 \af1\afs22 \ltrch\fcs0 \f39\fs18\lang1033\langfe1033\cgrid +{\rtlch\fcs1 \af1 \ltrch\fcs0 \trowd \irow0\cellx6300\cellx10800\row } +\trowd \irow1\lastrow +\cellx6300\cellx10800\pard\plain +\f42\fs40\cf8\lang1033\langfe1033\cgrid +{\rtlch\fcs1 \af0 \ltrch\fcs0 \f31506 hello\cell} +{\rtlch\fcs1 \af0 \ltrch\fcs0 \lang1049\langfe1033 \cell } +\pard\plain +{\rtlch\fcs1 \af1 \ltrch\fcs0 \trowd \irow1\lastrow +\cellx6300\cellx10800\row } +\pard\par +} diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx index 664f3edb9589..fedfb7fbd4ce 100644 --- a/sw/qa/extras/rtfimport/rtfimport.cxx +++ b/sw/qa/extras/rtfimport/rtfimport.cxx @@ -173,6 +173,12 @@ DECLARE_RTFIMPORT_TEST(testTdf115715, "tdf115715.rtf") getProperty<sal_Int32>(getParagraph(2), "ParaFirstLineIndent")); } +DECLARE_RTFIMPORT_TEST(testTdf81943, "tdf81943.rtf") +{ + // The shape wasn't in background. + CPPUNIT_ASSERT_EQUAL(false, getProperty<bool>(getShape(1), "Opaque")); +} + DECLARE_RTFIMPORT_TEST(testTdf115155, "tdf115155.rtf") { auto xLevels |