chart2/source/controller/main/ChartController_Window.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 5aa3f30a8e7dccd974f5ecd491663fb123005509
Author:     Bogdan Buzea <buzea.bog...@libreoffice.org>
AuthorDate: Fri Oct 18 06:58:48 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Fri Oct 18 09:26:43 2024 +0200

    tdf#163486: PVS: Identical branches
    
    Change-Id: I4afca4f9d7eb8968dc7a2465222f7c2060f10bd4
    V1037: Two or more case-branches perform the same actions. Check lines: 
178, 194
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175055
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/chart2/source/controller/main/ChartController_Window.cxx 
b/chart2/source/controller/main/ChartController_Window.cxx
index 86bdf100a73e..b9d4a4372f15 100644
--- a/chart2/source/controller/main/ChartController_Window.cxx
+++ b/chart2/source/controller/main/ChartController_Window.cxx
@@ -175,6 +175,7 @@ OUString lcl_getFormatCommandForObjectCID( 
std::u16string_view rCID )
             aDispatchCommand = ".uno:FormatTitle";
             break;
         case OBJECTTYPE_LEGEND_ENTRY:
+        case OBJECTTYPE_DATA_SERIES:
             aDispatchCommand = ".uno:FormatDataSeries";
             break;
         case OBJECTTYPE_AXIS:
@@ -190,9 +191,6 @@ OUString lcl_getFormatCommandForObjectCID( 
std::u16string_view rCID )
         case OBJECTTYPE_DATA_LABELS:
             aDispatchCommand = ".uno:FormatDataLabels";
             break;
-        case OBJECTTYPE_DATA_SERIES:
-            aDispatchCommand = ".uno:FormatDataSeries";
-            break;
         case OBJECTTYPE_DATA_LABEL:
             aDispatchCommand = ".uno:FormatDataLabel";
             break;

Reply via email to