diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-08 08:58:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-08 09:07:34 +0000 |
commit | 1f4e0359d3cee2780944f64025a63c208720c74d (patch) | |
tree | f99934a01892ede88b5213655de481919e5edfab /sw/source/filter/ww8/ww8atr.cxx | |
parent | 9cacb6ad9f5a012bc892cf9893cd8d37a2a5f304 (diff) |
convert SvxShadowLocation to scoped enum
Change-Id: Ie51995579312328538263172cd3173641df89bca
Reviewed-on: https://gerrit.libreoffice.org/34965
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8/ww8atr.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8atr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx index bc00c9bfeca6..e463164a4077 100644 --- a/sw/source/filter/ww8/ww8atr.cxx +++ b/sw/source/filter/ww8/ww8atr.cxx @@ -4121,7 +4121,7 @@ void WW8AttributeOutput::FormatBox( const SvxBoxItem& rBox ) if ( pItem ) { const SvxShadowItem* p = static_cast<const SvxShadowItem*>(pItem); - bShadow = ( p->GetLocation() != SVX_SHADOW_NONE ) + bShadow = ( p->GetLocation() != SvxShadowLocation::NONE ) && ( p->GetWidth() != 0 ); } @@ -5116,7 +5116,7 @@ void AttributeOutputBase::FormatCharBorder( const SvxBoxItem& rBox ) const SfxPoolItem* pItem = GetExport().HasItem( RES_CHRATR_SHADOW ); const SvxShadowItem* pShadowItem = static_cast<const SvxShadowItem*>(pItem); const bool bShadow = - pShadowItem && pShadowItem->GetLocation() != SVX_SHADOW_NONE && + pShadowItem && pShadowItem->GetLocation() != SvxShadowLocation::NONE && pShadowItem->GetWidth() > 0; CharBorder( pBorderLine, nDist, bShadow ); |