diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-04-19 10:31:52 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-04-19 12:57:52 +0200 |
commit | 7ec4e29ec5d7063b9e9a9e9ea6c1e18579c48218 (patch) | |
tree | 6268536f27702f27421eaab39088630f484c8356 /basctl | |
parent | 115a4eb944f6a49def1ba8e826c3258389aeab10 (diff) |
basctl: fix crash in EditorWindow::Command
GetWheelData returns nullptr if mnCommand != CommandEventId::Wheel
Change-Id: I57b30cc137b2f56e4295d49d0163ad95323201ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150598
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 4819de623900..a82cf2ae4e4b 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -505,7 +505,7 @@ void EditorWindow::Command( const CommandEvent& rCEvt ) const CommandWheelData* pData = rCEvt.GetWheelData(); // Check if it is a Ctrl+Wheel zoom command - if (pData->IsMod1()) + if (pData && pData->IsMod1()) { const sal_uInt16 nOldZoom = GetCurrentZoom(); sal_uInt16 nNewZoom; |