summaryrefslogtreecommitdiff
path: root/vbahelper/source
diff options
context:
space:
mode:
authorBogdan Buzea <buzea.bogdan@libreoffice.org>2024-10-21 17:10:19 +0200
committerDavid Gilbert <freedesktop@treblig.org>2024-11-01 01:15:17 +0100
commitdea5d561ba3eb3db8e8d86423cf23acdfe0b2b84 (patch)
tree3a8f9876278ddf5b2040c3ecf3e5ea40fed344b9 /vbahelper/source
parent665dce4442e48b133b9fe1a2eb792ed3ef81d90c (diff)
tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 632, 642. But it seems FRAME case was omitted, based on the above switch (line 591). Change-Id: I781aa8b47bdc969fa8e3e20297c94da71919a33f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175351 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'vbahelper/source')
-rw-r--r--vbahelper/source/vbahelper/vbashape.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vbahelper/source/vbahelper/vbashape.cxx b/vbahelper/source/vbahelper/vbashape.cxx
index 86997e0d73c0..183d3bb9a984 100644
--- a/vbahelper/source/vbahelper/vbashape.cxx
+++ b/vbahelper/source/vbahelper/vbashape.cxx
@@ -629,7 +629,7 @@ ScVbaShape::setRelativeHorizontalPosition(::sal_Int32 _relativehorizontalpositio
}
case word::WdRelativeHorizontalPosition::wdRelativeHorizontalPositionColumn:
{
- nType = text::RelOrientation::PAGE_FRAME;
+ nType = text::RelOrientation::FRAME;
break;
}
case word::WdRelativeHorizontalPosition::wdRelativeHorizontalPositionMargin: