sw/source/filter/ww8/ww8par3.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit dce64cc7cfd5f696ef0c030524558306687ae3c7 Author: Bogdan Buzea <buzea.bog...@libreoffice.org> AuthorDate: Sun Oct 20 20:42:16 2024 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Nov 4 07:06:55 2024 +0100 tdf#163486: PVS: Identical branches V1037 Two or more case-branches perform the same actions. Check lines: 883, 893 Change-Id: Ie722bffb7aa8cbdb38a5b1a244f5c5a072c26c8d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175263 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx index 354f32ac4f86..41604594f92e 100644 --- a/sw/source/filter/ww8/ww8par3.cxx +++ b/sw/source/filter/ww8/ww8par3.cxx @@ -880,6 +880,7 @@ bool WW8ListManager::ReadLVL(SwNumFormat& rNumFormat, std::unique_ptr<SfxItemSet switch( aLVL.nAlign ) { case 0: + case 3: // Writer here cannot do block justification eAdj = SvxAdjust::Left; break; case 1: @@ -888,10 +889,6 @@ bool WW8ListManager::ReadLVL(SwNumFormat& rNumFormat, std::unique_ptr<SfxItemSet case 2: eAdj = SvxAdjust::Right; break; - case 3: - // Writer here cannot do block justification - eAdj = SvxAdjust::Left; - break; default: // undefined value OSL_ENSURE( false, "Value of aLVL.nAlign is not supported" );