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 --- svtools/source/contnr/svimpbox.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'svtools/source/contnr/svimpbox.cxx') diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 9431266717df..56f9cbae9055 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -902,7 +902,8 @@ void SvImpLBox::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect aVerSBar->SetThumbPos( 0 ); StopUserEvent(); ShowCursor(true); - nCurUserEvent = Application::PostUserEvent(LINK(this, SvImpLBox, MyUserEvent), reinterpret_cast(1)); + nCurUserEvent = Application::PostUserEvent(LINK(this, SvImpLBox, MyUserEvent), + reinterpret_cast(1)); return; } } -- cgit