summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2023-04-19 10:31:52 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2023-04-19 12:57:52 +0200
commit7ec4e29ec5d7063b9e9a9e9ea6c1e18579c48218 (patch)
tree6268536f27702f27421eaab39088630f484c8356 /basctl
parent115a4eb944f6a49def1ba8e826c3258389aeab10 (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.cxx2
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;