add ChartController::getFirstDiagram code

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 19 January 2022 13:20 UTC

utility method to simplify some code

Change-Id: I24225e993ef03e7e859a96e7ff2434df158c318b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128599

cb65cf92b918 add ChartController::getFirstDiagram code
chart2/source/controller/inc/ChartController.hxx | 2 ++
chart2/source/controller/main/ChartController.cxx | 7 ++++++-
chart2/source/controller/main/ChartController_Insert.cxx | 8 ++++----
chart2/source/controller/main/ChartController_Properties.cxx | 2 +-
chart2/source/controller/main/ChartController_Tools.cxx | 4 ++--
chart2/source/controller/main/ChartController_Window.cxx | 2 +-
6 files changed, 16 insertions(+), 9 deletions(-)

Upstream: cgit.freedesktop.org


  • Share