From e4097762dd48eb2bc3a3e0dc83a3b81766b1c65a Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 25 May 2015 19:59:49 +0100 Subject: Audit all PostUserEvent calls and instrument for VclPtr. Hold a reference on the VclPtr while we're waiting for the UserEvent. Change-Id: I55c2671ca12eb14761c6a7dffd551af71547ecbd --- svx/source/tbxctrls/colrctrl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx/source/tbxctrls/colrctrl.cxx') diff --git a/svx/source/tbxctrls/colrctrl.cxx b/svx/source/tbxctrls/colrctrl.cxx index 0796f53e7b0d..54f7260d9af0 100644 --- a/svx/source/tbxctrls/colrctrl.cxx +++ b/svx/source/tbxctrls/colrctrl.cxx @@ -150,7 +150,7 @@ void SvxColorValueSet_docking::Command(const CommandEvent& rCEvt) void SvxColorValueSet_docking::StartDrag( sal_Int8 , const Point& ) { - Application::PostUserEvent(LINK(this, SvxColorValueSet_docking, ExecDragHdl)); + Application::PostUserEvent(LINK(this, SvxColorValueSet_docking, ExecDragHdl), NULL, true); } void SvxColorValueSet_docking::DoDrag() -- cgit