summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-10 16:06:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-11 10:25:25 +0200
commitf6fd7dd08b478857234a3b1b5b18e65e9b250174 (patch)
tree7827b2775f6067a7e835dc94f41611da84f38301 /svx
parentf09ccedb5f18a634c6aaa3340c8d1718f6279c71 (diff)
tdf#107706 fix crash when closing Calc document
regression from commit e8b49f09074fe184374bee5062715357427ae044 "new loplugin: useuniqueptr: vcl" Change-Id: I07ac157a02aa82b1ddbb741797fea093772f93f1 Reviewed-on: https://gerrit.libreoffice.org/37470 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/tbunosearchcontrollers.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
index 943918988c12..a3b2a06a2c61 100644
--- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx
+++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
@@ -226,6 +226,8 @@ void FindTextFieldControl::SetTextToSelected_Impl()
bool FindTextFieldControl::PreNotify( NotifyEvent& rNEvt )
{
+ if (isDisposed())
+ return true;
bool bRet= ComboBox::PreNotify( rNEvt );
switch ( rNEvt.GetType() )