diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-20 11:17:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-20 13:11:47 +0200 |
commit | 9d146b9418c66d1fd21fe0eb74f1b4daef30a31a (patch) | |
tree | 6f3a2965332fdce5c33a60e4e6f48319887e4537 /svx | |
parent | 2601814987fdac8d0b1d655d40987c331f3e51f4 (diff) |
fix crash when del in textbox in draw
regression from
commit 9090dc1f3b27195f5defd35586ac79357992be21
split OutputDevice from Window
Change-Id: Ib0df6b691f2281c366126c3a0cf3aae985e706be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115857
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdview.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx index a2e6861556ad..0cfe786c8799 100644 --- a/svx/source/svdraw/svdview.cxx +++ b/svx/source/svdraw/svdview.cxx @@ -163,7 +163,7 @@ SdrView::~SdrView() bool SdrView::KeyInput(const KeyEvent& rKEvt, vcl::Window* pWin) { - SetActualWin(pWin->GetOutDev()); + SetActualWin(pWin ? pWin->GetOutDev() : nullptr); bool bRet = SdrCreateView::KeyInput(rKEvt,pWin); if (!bRet && !IsExtendedKeyInputDispatcherEnabled()) { bRet = true; |