diff options
author | Justin Luth <justin.luth@collabora.com> | 2019-12-23 18:56:14 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-01-09 13:49:50 +0100 |
commit | f7456777224f95654a179d7320e3e90fe42ce581 (patch) | |
tree | 9984b35b4d8016c7e8bacb0cbcd7185052b548c9 /sw | |
parent | db75ec187051090e2eb1b13745fe11a2a5bb1dd0 (diff) |
cleanup tdf#129522: indenting
It is much easier to see what has changed if a commit does not
include formatting changes. Since there were a couple of them,
I separated it out into a separate patch.
I don't normally do this, but it seems like a good idea,
so I'm trying out the best way to do it.
The bad-side would be an extra patch to backport,
but I'm not expecting much desire to backport here.
Change-Id: Icc0eae1a881af80c0b8230697b235d1901b55fe3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85871
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8par6.cxx | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx index e33a691f7c7d..fc6a45e129dd 100644 --- a/sw/source/filter/ww8/ww8par6.cxx +++ b/sw/source/filter/ww8/ww8par6.cxx @@ -5056,23 +5056,20 @@ void SwWW8ImplReader::Read_CharBorder(sal_uInt16 nId, const sal_uInt8* pData, sh SetWW8_BRC(nBrcVer, aBrc, pData, nLen); - { - Set1Border(*aBoxItem, aBrc, SvxBoxItemLine::TOP, 0, nullptr, true); - Set1Border(*aBoxItem, aBrc, SvxBoxItemLine::BOTTOM, 0, nullptr, true); - Set1Border(*aBoxItem, aBrc, SvxBoxItemLine::LEFT, 0, nullptr, true); - Set1Border(*aBoxItem, aBrc, SvxBoxItemLine::RIGHT, 0, nullptr, true); - NewAttr( *aBoxItem ); - - short aSizeArray[WW8_RIGHT+1]={0}; aSizeArray[WW8_RIGHT] = 1; - SvxShadowItem aShadowItem(RES_CHRATR_SHADOW); - // Word only allows shadows on visible borders - if ( aBoxItem->CalcLineSpace( SvxBoxItemLine::RIGHT ) ) - SetShadow( aShadowItem, &aSizeArray[0], aBrc ); - NewAttr( aShadowItem ); - } + Set1Border(*aBoxItem, aBrc, SvxBoxItemLine::TOP, 0, nullptr, true); + Set1Border(*aBoxItem, aBrc, SvxBoxItemLine::BOTTOM, 0, nullptr, true); + Set1Border(*aBoxItem, aBrc, SvxBoxItemLine::LEFT, 0, nullptr, true); + Set1Border(*aBoxItem, aBrc, SvxBoxItemLine::RIGHT, 0, nullptr, true); + NewAttr( *aBoxItem ); + + short aSizeArray[WW8_RIGHT+1]={0}; aSizeArray[WW8_RIGHT] = 1; + SvxShadowItem aShadowItem(RES_CHRATR_SHADOW); + // Word only allows shadows on visible borders + if ( aBoxItem->CalcLineSpace( SvxBoxItemLine::RIGHT ) ) + SetShadow( aShadowItem, &aSizeArray[0], aBrc ); + NewAttr( aShadowItem ); } } - } void SwWW8ImplReader::Read_Hyphenation( sal_uInt16, const sal_uInt8* pData, short nLen ) |