chart2/source/controller/main/ChartController.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 01378452b467766bc1ed02b9517ec02e16e3b6ae
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sun Jan 28 14:37:39 2024 +0000
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Mon Jan 29 10:51:19 2024 +0100

    When chart is active pass uno:ChangeTheme through to its parent frame
    
    so theme changes can happen when chart has control of the UI
    
    Change-Id: Id7fd17d697d5ff8c03f1f46d80894e4f69cb9b9d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162619
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/chart2/source/controller/main/ChartController.cxx 
b/chart2/source/controller/main/ChartController.cxx
index 1a59bb161ec3..21d757737171 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -54,6 +54,7 @@
 #include <ViewElementListProvider.hxx>
 
 #include <cppuhelper/supportsservice.hxx>
+#include <comphelper/dispatchcommand.hxx>
 #include <comphelper/servicehelper.hxx>
 #include <BaseCoordinateSystem.hxx>
 
@@ -1325,6 +1326,8 @@ void SAL_CALL ChartController::dispatch(
             }
         }
     }
+    else if( aCommand == "ChangeTheme" )
+        comphelper::dispatchCommand(".uno:ChangeTheme", getFrame(), rArgs);
 }
 
 void SAL_CALL ChartController::addStatusListener(

Reply via email to