summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorSushil Shinde <sushilshinde@libreoffice.org>2015-04-20 00:45:06 +0530
committerCaolán McNamara <caolanm@redhat.com>2015-04-30 08:32:11 +0000
commit049e84125fb76f7a1a051d7cac2e04e37a7cd190 (patch)
tree03132db35b7a29b9d6141a4d54d52d0120a4d023 /sw/qa
parent8a08f68669f9acfe98dadcca4af6519164a17000 (diff)
tdf#90720 Textframe background was not transparent
In case of 'no fill' for vml textboxes, MS office rendered as transpanrent textbox. When opened same file on LO, it rendered it as textframe with white background. (Even if the fillstyle is type of 'no fill' and 'backcolortransparency ' is 100%) So, Fixing this issue by applying 100% 'FillTransparency' if it gets above situation. Change-Id: Ied2d3855354ada994288c29c78d9ccb4e5b0b4d6 Reviewed-on: https://gerrit.libreoffice.org/15390 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/ooxmlimport/data/testfdo90720.docxbin0 -> 11844 bytes
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx12
2 files changed, 12 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/testfdo90720.docx b/sw/qa/extras/ooxmlimport/data/testfdo90720.docx
new file mode 100644
index 000000000000..a4e8ba945fd2
--- /dev/null
+++ b/sw/qa/extras/ooxmlimport/data/testfdo90720.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index 107060f443f5..eebdc086bc97 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -360,6 +360,18 @@ xray image.FillColor
CPPUNIT_ASSERT_EQUAL( sal_Int32( 0xc0504d ), fillColor );
}
+DECLARE_OOXMLIMPORT_TEST(testfdo90720, "testfdo90720.docx")
+{
+ uno::Reference<text::XTextFramesSupplier> xTextFramesSupplier(mxComponent, uno::UNO_QUERY);
+ uno::Reference<container::XIndexAccess> xIndexAccess(xTextFramesSupplier->getTextFrames(), uno::UNO_QUERY);
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(2), xIndexAccess->getCount());
+ uno::Reference<text::XTextFrame> textbox(xIndexAccess->getByIndex(0), uno::UNO_QUERY);
+ uno::Reference<beans::XPropertySet> properties(textbox, uno::UNO_QUERY);
+ sal_Int32 fill_transperence;
+ properties->getPropertyValue( "FillTransparence" ) >>= fill_transperence;
+ CPPUNIT_ASSERT_EQUAL( sal_Int32(100), fill_transperence );
+}
+
DECLARE_OOXMLIMPORT_TEST(testN747461, "n747461.docx")
{
/*