summaryrefslogtreecommitdiff
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 11:04:39 +0200
commit2ff893426093652221a8602e71c7924c46d3386f (patch)
tree6246be8a4fc3940f98be450bacecaa33222cd1b6
parent5fa3a5cd075bfc6607c76b9be41310a24fec17f2 (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/37497 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-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 b411c6cf18b2..6b9f2364fe9d 100644
--- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx
+++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
@@ -191,6 +191,8 @@ void FindTextFieldControl::SetTextToSelected_Impl()
bool FindTextFieldControl::PreNotify( NotifyEvent& rNEvt )
{
+ if (isDisposed())
+ return true;
bool bRet= ComboBox::PreNotify( rNEvt );
switch ( rNEvt.GetType() )