summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-05-25 19:59:49 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-05-26 14:06:40 +0100
commitf0bbafba9d490c2628f1f60070aee877b64f5520 (patch)
treeac569030df1061f8e603cf6aac3738b3c6f91d67 /formula
parent9aebad8b58a7ee36284e465a40101d2a045d00dd (diff)
Audit all PostUserEvent calls and instrument for VclPtr.
Hold a reference on the VclPtr while we're waiting for the UserEvent. Change-Id: I55c2671ca12eb14761c6a7dffd551af71547ecbd
Diffstat (limited to 'formula')
-rw-r--r--formula/source/ui/dlg/funcutl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/formula/source/ui/dlg/funcutl.cxx b/formula/source/ui/dlg/funcutl.cxx
index 7f3e6f7b3b16..c620f383fb32 100644
--- a/formula/source/ui/dlg/funcutl.cxx
+++ b/formula/source/ui/dlg/funcutl.cxx
@@ -422,7 +422,7 @@ bool EditBox::PreNotify( NotifyEvent& rNEvt )
else
{
nResult=Control::PreNotify(rNEvt);
- Application::PostUserEvent( LINK( this, EditBox, ChangedHdl ) );
+ Application::PostUserEvent( LINK( this, EditBox, ChangedHdl ), NULL, true );
}
}
@@ -433,7 +433,7 @@ bool EditBox::PreNotify( NotifyEvent& rNEvt )
if(nSwitch==MouseNotifyEvent::MOUSEBUTTONDOWN || nSwitch==MouseNotifyEvent::MOUSEBUTTONUP)
{
bMouseFlag=true;
- Application::PostUserEvent( LINK( this, EditBox, ChangedHdl ) );
+ Application::PostUserEvent( LINK( this, EditBox, ChangedHdl ), NULL, true );
}
}
return nResult;