diff options
author | Justin Luth <justin.luth@collabora.com> | 2019-12-21 16:10:03 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-01-03 12:13:12 +0100 |
commit | 4ca73073a0d7c62b12a7354f76f8f80adc5d98c1 (patch) | |
tree | 61c08cb6ffead3de807882b2c963b7b2d94adc4e /editeng | |
parent | e5f4352d52044957c10f6530f76e97e0ca5cc4b3 (diff) |
tdf#129522 SvxShadowItem/writerfilter: allow shadow_NONE overrides
Both editeng and writerfilter were ignoring the case where NONE
should override an inherited shadow location. Of course,
this situation is very rare. Nearly all unit tests ran when
asserting that eLocation is already NONE.
The same is true for DOC, except that it is not affected by
SvxShadowItem's PutValue problem (and neither is ODT).
RTF is not even removing the borderlines themselves,
so no point in worrying about the shadow for RTF.
Change-Id: I7c1ae67270dde81915daee2f0282aa2074d2ec8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85658
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/frmitems.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 718e87ee2e37..643f8b1db471 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -1093,9 +1093,9 @@ bool SvxShadowItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) if ( bRet ) { -// SvxShadowLocation eSet = SvxShadowLocation::NONE; switch( aShadow.Location ) { + case table::ShadowLocation_NONE : eLocation = SvxShadowLocation::NONE; break; case table::ShadowLocation_TOP_LEFT : eLocation = SvxShadowLocation::TopLeft; break; case table::ShadowLocation_TOP_RIGHT : eLocation = SvxShadowLocation::TopRight; break; case table::ShadowLocation_BOTTOM_LEFT : eLocation = SvxShadowLocation::BottomLeft ; break; |