diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-09-30 21:09:27 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-09-30 21:49:22 +0200 |
commit | 09046504749cb59cc5b8f257658f49ffa93622c9 (patch) | |
tree | 738f38ae31178929e5431745ef3a329b95bc64f1 | |
parent | c84ce79132c674b4c2d31da8997ed77671323dfe (diff) |
actually the LineStyle property is *write-only*
... which is highly suspect in any case, but whatever.
Change-Id: Ibeff36a7d30750fc33e9729b067f86b3901d1c76
-rw-r--r-- | editeng/source/items/frmitems.cxx | 6 | ||||
-rw-r--r-- | sw/qa/extras/rtfimport/rtfimport.cxx | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 315a332cd9e1..f184a2869f44 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -1716,6 +1716,12 @@ bool SvxBoxItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const nDist = nRightDist; bDistMember = true; break; + case LINE_STYLE: + case LINE_WIDTH: + // it doesn't make sense to return a value for these since it's + // probably ambiguous + return true; + break; } if( bDistMember ) diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx index e12464499b6c..2b2764e14750 100644 --- a/sw/qa/extras/rtfimport/rtfimport.cxx +++ b/sw/qa/extras/rtfimport/rtfimport.cxx @@ -881,7 +881,8 @@ DECLARE_RTFIMPORT_TEST(testDoDhgt, "do-dhgt.rtf") DECLARE_RTFIMPORT_TEST(testDplinehollow, "dplinehollow.rtf") { uno::Reference<beans::XPropertySet> xPropertySet(getShape(1), uno::UNO_QUERY); - CPPUNIT_ASSERT_EQUAL(drawing::LineStyle_NONE, getProperty<drawing::LineStyle>(xPropertySet, "LineStyle")); + table::BorderLine2 line(getProperty<table::BorderLine2>(xPropertySet, "TopBorder")); + CPPUNIT_ASSERT_EQUAL(table::BorderLineStyle::NONE, line.LineStyle); } DECLARE_RTFIMPORT_TEST(testLeftmarginDefault, "leftmargin-default.rtf") |