summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBogdan Buzea <buzea.bogdan@libreoffice.org>2024-10-21 17:26:38 +0200
committerDavid Gilbert <freedesktop@treblig.org>2024-10-30 01:25:00 +0100
commit167ebdaaf98ba0065081b6fe8319526586e54bbd (patch)
tree1822c29c7b89e4e30baf29d389e0472091b6c6a9
parentca7accad71b0c91bc935715bb89b935857d6a711 (diff)
tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 614, 624 Change-Id: I0171d19f151719bc6faf8909d14327b63b4ac2ce Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175354 Tested-by: Jenkins Reviewed-by: David Gilbert <freedesktop@treblig.org>
-rw-r--r--cui/source/tabpages/tpgradnt.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/cui/source/tabpages/tpgradnt.cxx b/cui/source/tabpages/tpgradnt.cxx
index b052e2356e29..feab16ef7743 100644
--- a/cui/source/tabpages/tpgradnt.cxx
+++ b/cui/source/tabpages/tpgradnt.cxx
@@ -611,14 +611,6 @@ void SvxGradientTabPage::SetControlState_Impl( css::awt::GradientStyle eXGS )
break;
case css::awt::GradientStyle_ELLIPTICAL:
- m_xFtCenter->set_sensitive(true);
- m_xMtrCenterX->set_sensitive(true);
- m_xMtrCenterY->set_sensitive(true);
- m_xFtAngle->set_sensitive(true);
- m_xMtrAngle->set_sensitive(true);
- m_xSliderAngle->set_sensitive(true);
- break;
-
case css::awt::GradientStyle_SQUARE:
case css::awt::GradientStyle_RECT:
m_xFtCenter->set_sensitive(true);
@@ -628,6 +620,7 @@ void SvxGradientTabPage::SetControlState_Impl( css::awt::GradientStyle eXGS )
m_xMtrAngle->set_sensitive(true);
m_xSliderAngle->set_sensitive(true);
break;
+
default:
break;
}